diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 04:27:27 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 04:40:31 -0500 |
commit | 0d58595077841917ad57c9f8d2a61184a504ef40 (patch) | |
tree | 700d848c63f82b4284abebb23b1689a2272eb108 /sim/common/sim-cpu.h | |
parent | 8a0ebee658862bec66191df192c1d3b09bf0c943 (diff) | |
download | gdb-0d58595077841917ad57c9f8d2a61184a504ef40.zip gdb-0d58595077841917ad57c9f8d2a61184a504ef40.tar.gz gdb-0d58595077841917ad57c9f8d2a61184a504ef40.tar.bz2 |
sim: sim-model: build for everyone
Rather than include this for some targets, set it up so we can build it
all the time via the common code. This makes it easier for targets to
opt into it when they're ready, increases build coverage, and allows us
to centralize much of the logic.
We also get to delete tconfig.h from two more targets -- they were
setting WITH_DEVICES to 0 which has the same behavior as not defining
it at all.
While the SIM_HAVE_MODEL knob is gone, we now have WITH_MODEL_P, but it
is only used by the common sim-model code. We use it to declare dummy
model lists when the arch hasn't created its own.
Diffstat (limited to 'sim/common/sim-cpu.h')
-rw-r--r-- | sim/common/sim-cpu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/common/sim-cpu.h b/sim/common/sim-cpu.h index 20838e8..f998bef 100644 --- a/sim/common/sim-cpu.h +++ b/sim/common/sim-cpu.h @@ -100,7 +100,6 @@ typedef struct { PROFILE_DATA profile_data; #define CPU_PROFILE_DATA(cpu) (& (cpu)->base.profile_data) -#ifdef SIM_HAVE_MODEL /* Machine tables for this cpu. See sim-model.h. */ const SIM_MACH *mach; #define CPU_MACH(cpu) ((cpu)->base.mach) @@ -110,7 +109,6 @@ typedef struct { /* Model data (profiling state, etc.). */ void *model_data; #define CPU_MODEL_DATA(cpu) ((cpu)->base.model_data) -#endif /* Routines to fetch/store registers. */ CPUREG_FETCH_FN *reg_fetch; |