sim: move sim-engine.o/sim-hrw.o to the common list
Commit Message
Mike Frysinger <vapier@gentoo.org> writes:
> This makes these two objects available to all sims by default.
Hi Mike,
How about the patch below which unbreaks the sim build for
arm-none-eabi and mips-elf target?
Comments
On 10 Apr 2015 10:04, Yao Qi wrote:
> This patch breaks the sim build for some targets, such as arm-none-eabi
> and mips-elf.
>
> [PATCH] sim: move sim-engine.o/sim-hrw.o to the common list
> https://sourceware.org/ml/gdb-patches/2015-04/msg00178.html
>
> Looks sim-engine.o is common to all targets, but sim-hrw.o isn't. This
> patch is to move sim-hrw.o out of SIM_NEW_COMMON_OBJS, and put it back
> to each target which needs it.
the intention is to build all of common/ all the time and discourage targets
from writing their own sim_xxx funcs. even if that means the object doesn't
get used. i've landed a different change in the tree now which should fix
arm & mips.
-mike
@@ -21,6 +21,7 @@ SIM_OBJS = \
interp.o \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-reason.o \
sim-resume.o \
sim-stop.o
@@ -29,6 +29,7 @@ SIM_OBJS = \
machs.o \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-model.o \
sim-reason.o \
sim-reg.o \
@@ -180,7 +180,6 @@ SIM_NEW_COMMON_OBJS = \
sim-engine.o \
sim-events.o \
sim-fpu.o \
- sim-hrw.o \
sim-io.o \
sim-info.o \
sim-load.o \
@@ -25,6 +25,7 @@ CRISV32F_OBJS = crisv32f.o cpuv32.o decodev32.o modelv32.o mloopv32f.o
SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \
+ sim-hrw.o \
sim-model.o \
sim-reg.o \
cgen-utils.o cgen-trace.o cgen-scache.o \
@@ -23,6 +23,7 @@ SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-model.o \
sim-reg.o \
cgen-utils.o cgen-trace.o cgen-scache.o cgen-fpu.o cgen-accfp.o \
@@ -23,6 +23,7 @@ SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-model.o \
sim-reg.o \
cgen-utils.o cgen-trace.o cgen-scache.o \
@@ -8,6 +8,7 @@ SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-model.o \
sim-reg.o \
sim-signal.o \
@@ -28,6 +28,7 @@ SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-model.o \
sim-reg.o \
cgen-utils.o cgen-trace.o cgen-scache.o \
@@ -25,6 +25,7 @@ SIM_OBJS = $(M68HC11_OBJS) \
sim-load.o \
sim-hload.o \
sim-stop.o \
+ sim-hrw.o \
sim-reason.o
SIM_PROFILE= -DPROFILE=1 -DWITH_PROFILE=-1
@@ -22,6 +22,7 @@ MN10300_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
op_utils.o \
sim-hload.o \
+ sim-hrw.o \
sim-resume.o \
sim-reason.o \
sim-stop.o
@@ -24,6 +24,7 @@ SIM_OBJS = \
interp.o \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-reason.o \
sim-resume.o \
sim-stop.o
@@ -30,6 +30,7 @@ SIM_OBJS = \
trace.o \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-reason.o \
sim-reg.o \
sim-resume.o \
@@ -25,6 +25,7 @@ SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \
sim-hload.o \
+ sim-hrw.o \
sim-model.o \
sim-reg.o \
cgen-utils.o cgen-trace.o cgen-scache.o \
@@ -24,6 +24,7 @@ SIM_OBJS = \
simops.o interp.o \
itable.o semantics.o idecode.o icache.o engine.o irun.o support.o \
sim-hload.o \
+ sim-hrw.o \
sim-resume.o \
sim-reason.o \
sim-stop.o