aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/sim-main.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/frv/sim-main.h')
-rw-r--r--sim/frv/sim-main.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sim/frv/sim-main.h b/sim/frv/sim-main.h
index 7528f6a..e7dc1a2 100644
--- a/sim/frv/sim-main.h
+++ b/sim/frv/sim-main.h
@@ -118,8 +118,12 @@ struct _sim_cpu {
/* The sim_state struct. */
struct sim_state {
- sim_cpu *cpu;
-#define STATE_CPU(sd, n) (/*&*/ (sd)->cpu)
+ sim_cpu *cpu[MAX_NR_PROCESSORS];
+#if (WITH_SMP)
+#define STATE_CPU(sd,n) ((sd)->cpu[n])
+#else
+#define STATE_CPU(sd,n) ((sd)->cpu[0])
+#endif
CGEN_STATE cgen_state;