sim: unify sim-cpu usage
authorMike Frysinger <vapier@gentoo.org>
Wed, 15 Apr 2015 06:13:23 +0000 (02:13 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 15 Apr 2015 06:19:52 +0000 (02:19 -0400)
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.

69 files changed:
sim/arm/ChangeLog
sim/arm/Makefile.in
sim/arm/sim-main.h
sim/avr/ChangeLog
sim/avr/Makefile.in
sim/avr/sim-main.h
sim/bfin/ChangeLog
sim/bfin/Makefile.in
sim/bfin/sim-main.h
sim/common/ChangeLog
sim/common/Make-common.in
sim/common/sim-base.h
sim/cr16/ChangeLog
sim/cr16/Makefile.in
sim/cr16/sim-main.h
sim/cris/ChangeLog
sim/cris/Makefile.in
sim/cris/sim-main.h
sim/d10v/ChangeLog
sim/d10v/Makefile.in
sim/d10v/sim-main.h
sim/frv/ChangeLog
sim/frv/Makefile.in
sim/frv/sim-main.h
sim/ft32/ChangeLog
sim/ft32/Makefile.in
sim/ft32/sim-main.h
sim/h8300/ChangeLog
sim/h8300/Makefile.in
sim/h8300/sim-main.h
sim/iq2000/ChangeLog
sim/iq2000/Makefile.in
sim/iq2000/sim-main.h
sim/lm32/ChangeLog
sim/lm32/Makefile.in
sim/lm32/sim-main.h
sim/m32r/ChangeLog
sim/m32r/Makefile.in
sim/m32r/sim-main.h
sim/m68hc11/ChangeLog
sim/m68hc11/Makefile.in
sim/m68hc11/sim-main.h
sim/mcore/ChangeLog
sim/mcore/Makefile.in
sim/mcore/sim-main.h
sim/microblaze/ChangeLog
sim/microblaze/Makefile.in
sim/microblaze/sim-main.h
sim/mips/ChangeLog
sim/mips/Makefile.in
sim/mips/sim-main.h
sim/mn10300/ChangeLog
sim/mn10300/Makefile.in
sim/mn10300/sim-main.h
sim/moxie/ChangeLog
sim/moxie/Makefile.in
sim/moxie/sim-main.h
sim/msp430/ChangeLog
sim/msp430/Makefile.in
sim/msp430/sim-main.h
sim/sh/ChangeLog
sim/sh/Makefile.in
sim/sh/sim-main.h
sim/sh64/ChangeLog
sim/sh64/Makefile.in
sim/sh64/sim-main.h
sim/v850/ChangeLog
sim/v850/Makefile.in
sim/v850/sim-main.h

index 4078d71..c98903d 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 5c37723..745b62a 100644 (file)
@@ -22,7 +22,6 @@ SIM_EXTRA_CFLAGS = -DMODET
 SIM_OBJS = \
        wrapper.o \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        armemu26.o armemu32.o arminit.o armos.o armsupp.o \
        armvirt.o bag.o thumbemu.o \
index d020972..8b64287 100644 (file)
@@ -44,11 +44,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
 
   sim_state_base base;
 };
index d8b2a29..0dd4faf 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index d7b77d0..80a1230 100644 (file)
@@ -19,7 +19,6 @@
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
        interp.o \
-       sim-cpu.o \
        sim-hload.o \
        sim-reason.o \
        sim-resume.o \
index 025eb15..fc30e11 100644 (file)
@@ -39,11 +39,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
 
   sim_state_base base;
 };
index cd73580..db379c3 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 38531a9..dc42339 100644 (file)
@@ -27,7 +27,6 @@ SIM_OBJS = \
        gui.o \
        interp.o \
        machs.o \
-       sim-cpu.o \
        sim-hload.o \
        sim-model.o \
        sim-reason.o \
index 1b58e75..f8c2ba2 100644 (file)
@@ -46,11 +46,7 @@ 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
+
   /* ... simulator specific members ... */
   struct bfin_board_data board;
 #define STATE_BOARD_DATA(sd) (&(sd)->board)
index 5c0667b..316771d 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
+       * sim-main.h (STATE_CPU): Remove from comment and define.
+
 2015-04-13  Mike Frysinger  <vapier@gentoo.org>
 
        * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
index d42fea6..2d1bb8a 100644 (file)
@@ -176,6 +176,7 @@ SIM_NEW_COMMON_OBJS = \
        sim-command.o \
        sim-config.o \
        sim-core.o \
+       sim-cpu.o \
        sim-endian.o \
        sim-engine.o \
        sim-events.o \
index f7a33cd..0dae541 100644 (file)
@@ -44,11 +44,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
      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
        ... simulator specific members ...
        sim_state_base base;
      };
@@ -116,6 +111,15 @@ extern struct sim_state *current_state;
 #endif
 
 
+/* We require all sims to dynamically allocate cpus.  See comment up top about
+   struct sim_state.  */
+#if (WITH_SMP)
+# define STATE_CPU(sd, n) ((sd)->cpu[n])
+#else
+# define STATE_CPU(sd, n) ((sd)->cpu[0])
+#endif
+
+
 typedef struct {
 
   /* Simulator's argv[0].  */
index 272d7ca..4aa6429 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 3918ced..5d1632d 100644 (file)
@@ -19,7 +19,6 @@
 
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        interp.o \
        table.o \
index 2be0e23..ec94a82 100644 (file)
@@ -43,11 +43,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
 
   sim_state_base base;
 };
index b1ac591..8927529 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (STATE_CPU): Handle WITH_SMP.
 
index 5459c0e..945eaa6 100644 (file)
@@ -24,7 +24,6 @@ CRISV32F_OBJS = crisv32f.o cpuv32.o decodev32.o modelv32.o mloopv32f.o
 
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-model.o \
        sim-reg.o \
        cgen-utils.o cgen-trace.o cgen-scache.o \
index 5ae292e..df6c5cf 100644 (file)
@@ -226,11 +226,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;
 
index 331f359..4ce1df8 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 167e76b..27b0008 100644 (file)
@@ -20,7 +20,6 @@
 SIM_OBJS = \
        interp.o \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        table.o \
        simops.o \
index ac32f29..c83c78c 100644 (file)
@@ -43,11 +43,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
 
   sim_state_base base;
 };
index 8e7e995..05ae18a 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (STATE_CPU): Handle WITH_SMP.
 
index 415d2ab..6dc5616 100644 (file)
@@ -21,7 +21,6 @@ FRV_OBJS = frv.o cpu.o decode.o sem.o model.o mloop.o cgen-par.o
 
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        sim-model.o \
        sim-reg.o \
index e7dc1a2..1fd60b5 100644 (file)
@@ -119,11 +119,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;
 
index f3208e6..07fb6a6 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index c124bf3..69bf060 100644 (file)
@@ -24,7 +24,6 @@ SIM_OBJS = \
        sim-bits.o      \
        sim-config.o    \
        sim-core.o      \
-       sim-cpu.o       \
        sim-endian.o    \
        sim-events.o    \
        sim-fpu.o       \
index 6cb7c7e..1aa4248 100644 (file)
@@ -46,11 +46,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
 
   sim_state_base base;
 };
index 1740b3d..eaf3088 100644 (file)
@@ -1,5 +1,10 @@
 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>
+
        * compile.c: Include sim-options.h.
        (sim_open): Call sim_cpu_alloc_all instead of sim_cpu_alloc.
        * sim-main.h (struct sim_state): Change cpu to an array of pointers.
index 9b89aea..da68255 100644 (file)
@@ -19,7 +19,6 @@
 
 SIM_OBJS = compile.o \
           $(SIM_NEW_COMMON_OBJS) \
-          sim-cpu.o \
           sim-load.o
 
 ## COMMON_POST_CONFIG_FRAG
index 7126fa3..8b07505 100644 (file)
@@ -155,11 +155,6 @@ struct sim_state {
 
 #define CIA_GET(CPU)           (cpu_get_pc (CPU))
 #define CIA_SET(CPU, VAL)      (cpu_set_pc ((CPU), (VAL)))
-#if (WITH_SMP)
-#define STATE_CPU(sd,n) ((sd)->cpu[n])
-#else
-#define STATE_CPU(sd,n) ((sd)->cpu[0])
-#endif
 #define cpu_set_pc(CPU, VAL)   (((CPU)->pc)  = (VAL))
 #define cpu_get_pc(CPU)                (((CPU)->pc))
 
index b590cb0..4278ae6 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (STATE_CPU): Handle WITH_SMP.
 
index 3e07c53..0871877 100644 (file)
@@ -21,7 +21,6 @@ IQ2000_OBJS = iq2000.o cpu.o decode.o sem.o model.o mloop.o
 
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        sim-model.o \
        sim-reg.o \
index 623c0a6..1498eb4 100644 (file)
@@ -58,11 +58,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;
 
index 94a1ccd..6464b77 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (STATE_CPU): Handle WITH_SMP.
 
index ea2dd2d..8bbe014 100644 (file)
@@ -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 \
index d985607..dcb5ac0 100644 (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;
 
index c8a285c..ab15617 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (STATE_CPU): Handle WITH_SMP.
 
index 8f134f3..7090e5f 100644 (file)
@@ -26,7 +26,6 @@ TRAPS_OBJ = @traps_obj@
 
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        sim-model.o \
        sim-reg.o \
index 96c1ec1..9f859e2 100644 (file)
@@ -69,11 +69,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;
 
index adedfc4..64cb223 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 7db3897..9b931a1 100644 (file)
@@ -22,7 +22,6 @@ M68HC11_OBJS = interp.o m68hc11int.o m68hc12int.o \
 
 SIM_OBJS = $(M68HC11_OBJS) \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-load.o \
        sim-hload.o \
        sim-stop.o \
index be3fc3d..9c0a1ed 100644 (file)
@@ -577,12 +577,6 @@ extern void m68hc11cpu_set_port (struct hw *me, sim_cpu *cpu,
 #define CIA_GET(CPU)      (cpu_get_pc (CPU))
 #define CIA_SET(CPU,VAL)  (cpu_set_pc ((CPU), (VAL)))
 
-#if (WITH_SMP)
-#define STATE_CPU(sd,n) ((sd)->cpu[n])
-#else
-#define STATE_CPU(sd,n) ((sd)->cpu[0])
-#endif
-
 struct sim_state {
   sim_cpu        *cpu[MAX_NR_PROCESSORS];
   device         *devices;
index f8f29a8..152864e 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index a54c92c..407b600 100644 (file)
@@ -20,7 +20,6 @@
 SIM_OBJS = \
        interp.o \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        sim-stop.o
 
index 96954b8..80b467a 100644 (file)
@@ -43,11 +43,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
 
   sim_state_base base;
 };
index 7285fd7..9fd188c 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 0085948..6c63129 100644 (file)
@@ -20,7 +20,6 @@
 SIM_OBJS = \
        interp.o \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        sim-reason.o \
        sim-stop.o
index cf1a5f9..68f8223 100644 (file)
@@ -62,11 +62,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
 
   sim_state_base base;
 };
index 7577dc6..249e8c5 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 96131ae..17eeab6 100644 (file)
@@ -46,7 +46,6 @@ SIM_OBJS = \
        cp1.o \
        mdmx.o \
        dsp.o \
-       sim-cpu.o \
        sim-main.o \
        sim-hload.o \
        sim-stop.o \
index e27636c..a044504 100644 (file)
@@ -489,11 +489,6 @@ struct sim_state {
   struct swatch watch;
 
   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
 
   sim_state_base base;
 };
index 87985d6..eca9946 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-15  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (MN10300_OBJS): Delete sim-cpu.o.
+       * sim-main.h (STATE_CPU): Delete.
+
 2015-04-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 3b4c7d2..a85d932 100644 (file)
@@ -21,7 +21,6 @@ MN10300_OBJS = \
        itable.o semantics.o idecode.o icache.o engine.o irun.o support.o \
        $(SIM_NEW_COMMON_OBJS) \
        op_utils.o \
-       sim-cpu.o \
        sim-hload.o \
        sim-resume.o \
        sim-reason.o \
index 046aa17..47c017e 100644 (file)
@@ -86,11 +86,6 @@ struct sim_state {
 
   /* the processors proper */
   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
 
   /* The base class.  */
   sim_state_base base;
index 32b4f45..b2cf6f6 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index ff6bed9..21dfe01 100644 (file)
@@ -22,7 +22,6 @@ dtbdir = @datadir@/gdb/dtb
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
        interp.o \
-       sim-cpu.o \
        sim-hload.o \
        sim-reason.o \
        sim-resume.o \
index cb1ce72..5a9f7c7 100644 (file)
@@ -47,11 +47,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
 
   sim_state_base base;
 };
index 9347ed5..37204f2 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 3ab384f..4653d97 100644 (file)
@@ -28,7 +28,6 @@ SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
        msp430-sim.o \
        trace.o \
-       sim-cpu.o \
        sim-hload.o \
        sim-reason.o \
        sim-reg.o \
index f625bd5..d71217e 100644 (file)
@@ -42,12 +42,6 @@ struct sim_state
 {
   sim_cpu *cpu[MAX_NR_PROCESSORS];
 
-#if (WITH_SMP)
-#error WITH_SMP not supported by MSP430 sim
-#else
-#define STATE_CPU(sd,n) ((sd)->cpu[0])
-#endif
-
   asymbol **symbol_table;
   long number_of_symbols;
 #define STATE_SYMBOL_TABLE(sd)   ((sd)->symbol_table)
index 23efac2..9b5c69e 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 19c15ab..236af86 100644 (file)
@@ -20,7 +20,6 @@
 SIM_OBJS = \
        interp.o \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        sim-stop.o \
        table.o
index e15a26a..3ae5f0f 100644 (file)
@@ -142,11 +142,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
 
   sim_state_base base;
 };
index 5bbc7a3..7146868 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (STATE_CPU): Handle WITH_SMP.
 
index 19c9957..99ed4e8 100644 (file)
@@ -23,7 +23,6 @@ SH64_OBJS = sh64.o cpu.o sh-desc.o \
 
 SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
-       sim-cpu.o \
        sim-hload.o \
        sim-model.o \
        sim-reg.o \
index 5ae4309..b988e8e 100644 (file)
@@ -54,11 +54,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;
 
index 62c6ef0..bcc9bd5 100644 (file)
@@ -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-13  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index e78fda9..726ed5e 100644 (file)
@@ -23,7 +23,6 @@ SIM_OBJS = \
        $(SIM_NEW_COMMON_OBJS) \
        simops.o interp.o \
        itable.o semantics.o idecode.o icache.o engine.o irun.o support.o \
-       sim-cpu.o \
        sim-hload.o \
        sim-resume.o \
        sim-reason.o \
index 102c917..0a02565 100644 (file)
@@ -66,11 +66,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
 #if 0
   SIM_ADDR rom_size;
   SIM_ADDR low_end;