From 294bcb78fe70e9768b09b9b70f2476bdb8f51ef3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 4 Feb 2010 22:52:03 +0000 Subject: [PATCH] sime-base.h: fix typos in STATE_CPU() examples --- sim/common/ChangeLog | 5 +++++ sim/common/sim-base.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index d30e8fddef..95d264fd91 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2010-02-04 Mike Frysinger + + * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop + & from the STATE_CPU() examples. + 2010-01-24 Doug Evans * cgen-accfp.c (fextsfdf): New arg how. All callers updated. diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h index 7a28b12738..ab5eb68cd1 100644 --- a/sim/common/sim-base.h +++ b/sim/common/sim-base.h @@ -44,11 +44,11 @@ along with this program. If not, see . */ }; 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;