diff options
Diffstat (limited to 'sim/cris/sim-main.h')
-rw-r--r-- | sim/cris/sim-main.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sim/cris/sim-main.h b/sim/cris/sim-main.h index 18c536f..5ae292e 100644 --- a/sim/cris/sim-main.h +++ b/sim/cris/sim-main.h @@ -225,8 +225,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; |