sim/testsuite/: split up arch-specific changelogs
[deliverable/binutils-gdb.git] / sim / common / sim-base.h
index 6297ca85cacc1f8f3aa0deb20cf645492c05e069..524020a2059f19c50d1a9c4d479a6a6cb3ad5e75 100644 (file)
@@ -1,6 +1,6 @@
 /* Simulator pseudo baseclass.
 
-   Copyright 1997, 1998, 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright 1997-1998, 2003, 2007-2012 Free Software Foundation, Inc.
 
    Contributed by Cygnus Support.
 
@@ -33,7 +33,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
          CIA_ADDR to return the integral value.  *-/
      /-* #define CIA_ADDR(cia) (...) *-/
      #include "sim-base.h"
-   
+
    finally, two data types `struct _sim_cpu' and `struct sim_state'
    are defined:
 
@@ -43,11 +43,11 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
      };
 
      struct sim_state {
-       sim_cpu cpu[MAX_NR_PROCESSORS];
+       sim_cpu *cpu[MAX_NR_PROCESSORS];
      #if (WITH_SMP)
-     #define STATE_CPU(sd,n) (&(sd)->cpu[n])
+     #define STATE_CPU(sd,n) ((sd)->cpu[n])
      #else
-     #define STATE_CPU(sd,n) (&(sd)->cpu[0])
+     #define STATE_CPU(sd,n) ((sd)->cpu[0])
      #endif
        ... simulator specific members ...
        sim_state_base base;
This page took 0.023125 seconds and 4 git commands to generate.