aboutsummaryrefslogtreecommitdiff
path: root/sim/sparc/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/sparc/Makefile.in')
-rw-r--r--sim/sparc/Makefile.in45
1 files changed, 31 insertions, 14 deletions
diff --git a/sim/sparc/Makefile.in b/sim/sparc/Makefile.in
index e708a0c..5c33f89 100644
--- a/sim/sparc/Makefile.in
+++ b/sim/sparc/Makefile.in
@@ -4,7 +4,10 @@
## COMMON_PRE_CONFIG_FRAG
SPARC32_OBJS = sparc32.o trap32.o dev32.o cpu32.o decode32.o model32.o mloop32.o sem32.o
-SPARC64_OBJS = sparc64.o trap64.o cpu64.o decode64.o model64.o mloop64.o sem64.o
+SPARC64_OBJS = sparc64.o trap64.o dev64.o cpu64.o decode64.o model64.o mloop64.o sem64.o
+
+# Set to one of SPARC32_OBJS/SPARC64_OBJS.
+CPU_OBJS = @cpu_objs@
SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
@@ -15,14 +18,14 @@ SIM_OBJS = \
sim-reg.o \
cgen-utils.o cgen-trace.o cgen-scache.o \
cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
- sim-if.o sparc.o arch.o \
- $(SPARC32_OBJS)
+ sim-if.o sparc.o arch.o sparc-desc.o \
+ $(CPU_OBJS)
# Extra headers included by sim-main.h.
# This plus sim_main_headers is used by Make-common.in for files in common.
SIM_EXTRA_DEPS = \
$(CGEN_INCLUDE_DEPS) \
- arch.h cpuall.h cpu-opc.h
+ arch.h cpuall.h sparc-desc.h
# sparc-sim.h kept out for now (too much unnecessary recompilation)
SIM_EXTRA_CFLAGS =
@@ -37,7 +40,8 @@ NL_TARGET = -DNL_TARGET_sparc
arch = sparc
-sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h dev32.h
+sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h \
+ dev32.h dev64.h
sparc.o: sparc.c $(SIM_MAIN_DEPS) \
$(srcdir)/../common/cgen-mem.h \
$(srcdir)/../common/cgen-ops.h
@@ -81,6 +85,7 @@ SPARC64_INCLUDE_DEPS = \
sparc64.o: sparc64.c $(SPARC64_INCLUDE_DEPS)
trap64.o: trap64.c $(SPARC64_INCLUDE_DEPS)
+dev64.o: dev64.c $(SPARC32_INCLUDE_DEPS) dev64.h
# FIXME: Use of `mono' is wip.
mloop64.c eng64.h: stamp-mloop64
@@ -98,38 +103,50 @@ decode64.o: decode64.c $(SPARC64_INCLUDE_DEPS)
model64.o: model64.c $(SPARC64_INCLUDE_DEPS)
sparc-clean:
- rm -f mloop32.c eng32.h mloop64.c eng64.h stamp-mloop32 stamp-mloop64
- rm -f stamp-arch stamp-cpu32 stamp-cpu64
+ rm -f mloop32.c eng32.h stamp-mloop32
+ rm -f mloop64.c eng64.h stamp-mloop64
+ rm -f stamp-arch stamp-cpu32 stamp-cpu64 stamp-desc
rm -f tmp-*
# cgen support
-stamp-arch: $(CGEN_MAIN_SCM) $(CGEN_ARCH_SCM) \
+stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) \
$(srccgen)/sparc.cpu $(srccgen)/sparccom.cpu \
$(srccgen)/sparc32.cpu $(srccgen)/sparc64.cpu
- $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=sparc-v8,sparclite
+ $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) \
+ mach=sparc-v8,sparclite,sparc-v9 \
+ FLAGS="copyright=cygnus package=cygsim"
touch stamp-arch
arch.h arch.c cpuall.h: $(CGEN_MAIN) stamp-arch
@true
# Add with-scache to FLAGS when switching to -pbb.
-stamp-cpu32: $(CGEN_MAIN_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) \
+stamp-cpu32: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) \
$(srccgen)/sparc.cpu $(srccgen)/sparccom.cpu $(srccgen)/sparc32.cpu
$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
cpu=sparc32 mach=sparc-v8,sparclite SUFFIX=32 \
- FLAGS="with-profile fn" \
+ FLAGS="with-profile=fn copyright=cygnus package=cygsim" \
EXTRAFILES="$(CGEN_CPU_SEM)"
touch stamp-cpu32
cpu32.h decode32.h decode32.c model32.c sem32.c sem32-switch.c: $(CGEN_MAINT) stamp-cpu32
@true
# Add with-scache to FLAGS when switching to -pbb.
-stamp-cpu64: $(CGEN_MAIN_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) \
+stamp-cpu64: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) \
$(srccgen)/sparc.cpu $(srccgen)/sparccom.cpu $(srccgen)/sparc64.cpu
$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
- cpu=sparc64 mach=sparc-v9,sparc-v9a SUFFIX=64 \
- FLAGS="with-profile fn" \
+ cpu=sparc64 mach=sparc-v9 SUFFIX=64 \
+ FLAGS="with-profile=fn copyright=cygnus package=cygsim" \
EXTRAFILES="$(CGEN_CPU_SEM)"
touch stamp-cpu64
cpu64.h decode64.h decode64.c model64.c sem64.c sem64-switch.c: $(CGEN_MAINT) stamp-cpu64
@true
+
+stamp-desc: $(CGEN_READ_SCM) $(CGEN_DESC_SCM) \
+ $(srccgen)/sparc.cpu $(srccgen)/sparccom.cpu $(srccgen)/sparc32.cpu $(srccgen)/sparc64.cpu
+ $(MAKE) cgen-desc $(CGEN_FLAGS_TO_PASS) \
+ cpu=sparc mach=all \
+ FLAGS="copyright=cygnus package=cygsim"
+ touch stamp-desc
+sparc-desc.c sparc-desc.h sparc-opc: $(CGEN_MAINT) stamp-desc
+ @true