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/sh64/ChangeLog | 5 +++++ sim/sh64/Makefile.in | 1 - sim/sh64/tconfig.h | 7 ------- 3 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 sim/sh64/tconfig.h (limited to 'sim/sh64') diff --git a/sim/sh64/ChangeLog b/sim/sh64/ChangeLog index 1601ff5..9a4d1f5 100644 --- a/sim/sh64/ChangeLog +++ b/sim/sh64/ChangeLog @@ -1,5 +1,10 @@ 2015-12-25 Mike Frysinger + * Makefile.in (SIM_OBJS): Delete sim-model.o. + * tconfig.h: Delete file. + +2015-12-25 Mike Frysinger + * arch.c: Rename MACH to SIM_MACH. * cpuall.h: Likewise. * sh64.c: Rename MACH to SIM_MACH, MACH_IMP_PROPERTIES to diff --git a/sim/sh64/Makefile.in b/sim/sh64/Makefile.in index d1847bd..aa84c8d 100644 --- a/sim/sh64/Makefile.in +++ b/sim/sh64/Makefile.in @@ -24,7 +24,6 @@ SH64_OBJS = sh64.o cpu.o sh-desc.o \ SIM_OBJS = \ $(SIM_NEW_COMMON_OBJS) \ sim-hload.o \ - sim-model.o \ cgen-utils.o cgen-trace.o cgen-scache.o \ cgen-run.o \ sim-if.o arch.o \ diff --git a/sim/sh64/tconfig.h b/sim/sh64/tconfig.h deleted file mode 100644 index b4e256f..0000000 --- a/sim/sh64/tconfig.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SH64 target configuration file. -*- C -*- */ - -/* For MSPR support. FIXME: revisit. */ -#define WITH_DEVICES 0 - -/* ??? Temporary hack until model support unified. */ -#define SIM_HAVE_MODEL -- cgit v1.1