From 0d58595077841917ad57c9f8d2a61184a504ef40 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 25 Dec 2015 04:27:27 -0500 Subject: 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. --- sim/bfin/ChangeLog | 5 +++++ sim/bfin/Makefile.in | 1 - sim/bfin/tconfig.h | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'sim/bfin') diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index 5599af6..744f5eb 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,5 +1,10 @@ 2015-12-25 Mike Frysinger + * Makefile.in (SIM_OBJS): Delete sim-model.o. + * tconfig.h (SIM_HAVE_MODEL): Delete. + +2015-12-25 Mike Frysinger + * machs.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to SIM_MACH_IMP_PROPERTIES, and MODEL to SIM_MODEL. diff --git a/sim/bfin/Makefile.in b/sim/bfin/Makefile.in index 817fecb..a2b6b0b 100644 --- a/sim/bfin/Makefile.in +++ b/sim/bfin/Makefile.in @@ -28,7 +28,6 @@ SIM_OBJS = \ interp.o \ machs.o \ sim-hload.o \ - sim-model.o \ sim-resume.o INCLUDE = bfin-sim.h diff --git a/sim/bfin/tconfig.h b/sim/bfin/tconfig.h index 254aba9..3ecd174 100644 --- a/sim/bfin/tconfig.h +++ b/sim/bfin/tconfig.h @@ -3,6 +3,3 @@ /* We use this so that we are passed the requesting CPU for HW acesses. Common sim core by default sets hw_system_cpu to NULL for WITH_HW. */ #define WITH_DEVICES 1 - -/* ??? Temporary hack until model support unified. */ -#define SIM_HAVE_MODEL -- cgit v1.1