sime-base.h: fix typos in STATE_CPU() examples
authorMike Frysinger <vapier@gentoo.org>
Thu, 4 Feb 2010 22:52:03 +0000 (22:52 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 4 Feb 2010 22:52:03 +0000 (22:52 +0000)
sim/common/ChangeLog
sim/common/sim-base.h

index d30e8fddefce28953fdcfc66fe34d36395bcce57..95d264fd91b9f029b1b2e63358cfe2a0874dd7ce 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-base.h: Declare sim_state.cpu as a pointer in the comment.  Drop
+       & from the STATE_CPU() examples.
+
 2010-01-24  Doug Evans  <dje@sebabeach.org>
 
        * cgen-accfp.c (fextsfdf): New arg how.  All callers updated.
index 7a28b12738da27555f413127a1293b129f7a60fd..ab5eb68cd16c86023ac3f602ff1af65272486390 100644 (file)
@@ -44,11 +44,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;