sim: unify sim-cpu usage

Now that all the targets are utilizing CPU_PC_{FETCH,STORE}, and the
cpu state is multicore, and the STATE_CPU defines match, we can move
it all to the common code.
This commit is contained in:
Mike Frysinger
2015-04-15 02:13:23 -04:00
parent f95f4ed2c4
commit 78e9aa70fe
69 changed files with 126 additions and 139 deletions

View File

@@ -84,11 +84,6 @@ struct _sim_cpu
struct sim_state
{
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;