aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-base.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-02-04 22:52:03 +0000
committerMike Frysinger <vapier@gentoo.org>2010-02-04 22:52:03 +0000
commit294bcb78fe70e9768b09b9b70f2476bdb8f51ef3 (patch)
treef1ddf0837198acc3172a12558dbf35489101f120 /sim/common/sim-base.h
parent4ee73e90d5ecee797674069eec1023257c667449 (diff)
downloadgdb-294bcb78fe70e9768b09b9b70f2476bdb8f51ef3.zip
gdb-294bcb78fe70e9768b09b9b70f2476bdb8f51ef3.tar.gz
gdb-294bcb78fe70e9768b09b9b70f2476bdb8f51ef3.tar.bz2
sime-base.h: fix typos in STATE_CPU() examples
Diffstat (limited to 'sim/common/sim-base.h')
-rw-r--r--sim/common/sim-base.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h
index 7a28b12..ab5eb68 100644
--- a/sim/common/sim-base.h
+++ b/sim/common/sim-base.h
@@ -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;