mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
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:
@@ -1,3 +1,8 @@
|
||||
2015-04-15 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.in (SIM_OBJS): Delete sim-cpu.o.
|
||||
* sim-main.h (STATE_CPU): Delete.
|
||||
|
||||
2015-04-15 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim-main.h (struct sim_state): Change cpu to an array of pointers.
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
# List of object files, less common parts.
|
||||
SIM_OBJS = \
|
||||
$(SIM_NEW_COMMON_OBJS) \
|
||||
sim-cpu.o \
|
||||
sim-hload.o \
|
||||
sim-model.o \
|
||||
sim-reg.o \
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user