summaryrefslogtreecommitdiff
path: root/sim/fr30
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2000-08-21 15:52:39 +0000
committerFrank Ch. Eigler <fche@redhat.com>2000-08-21 15:52:39 +0000
commit63f64d4ec182d25ef7a900f599a968b0ec111b99 (patch)
tree8419ad0e91182575bdc6ce6eb94ca76055d7b0fa /sim/fr30
parentdba7da3e4068d1c7df60f07d4f6086e36f9b0563 (diff)
downloadgdb-63f64d4ec182d25ef7a900f599a968b0ec111b99.tar.gz
* Contribute CGEN simulator build support code.
* Patch was posted by bje@redhat.com.
Diffstat (limited to 'sim/fr30')
-rw-r--r--sim/fr30/ChangeLog5
-rw-r--r--sim/fr30/Makefile.in25
2 files changed, 27 insertions, 3 deletions
diff --git a/sim/fr30/ChangeLog b/sim/fr30/ChangeLog
index 14f255de340..bc797d0daa3 100644
--- a/sim/fr30/ChangeLog
+++ b/sim/fr30/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-21 Frank Ch. Eigler <fche@redhat.com>
+
+ * Makefile.in (fr30-clean): Add stamp-arch, stamp-cpu.
+ (stamp-arch, stamp-cpu): New targets.
+
Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
diff --git a/sim/fr30/Makefile.in b/sim/fr30/Makefile.in
index 427312e70bc..7c00b58b835 100644
--- a/sim/fr30/Makefile.in
+++ b/sim/fr30/Makefile.in
@@ -18,7 +18,7 @@
## COMMON_PRE_CONFIG_FRAG
-FR30_OBJS = fr30.o cpu.o decode.o sem.o model.o mloop.o
+FR30_OBJS = fr30.o cpu.o decode.o sem.o model.o arch.o mloop.o
CONFIG_DEVICES = dv-sockser.o
CONFIG_DEVICES =
@@ -32,7 +32,7 @@ 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 arch.o \
+ sim-if.o \
$(FR30_OBJS) \
traps.o devices.o \
$(CONFIG_DEVICES)
@@ -87,4 +87,23 @@ model.o: model.c $(FR30BF_INCLUDE_DEPS)
fr30-clean:
rm -f mloop.c eng.h stamp-mloop
rm -f tmp-*
-
+ rm -f stamp-arch stamp-cpu
+
+# cgen support, enable with --enable-cgen-maint
+CGEN_MAINT = ; @true
+# The following line is commented in or out depending upon --enable-cgen-maint.
+@CGEN_MAINT@CGEN_MAINT =
+
+stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srccgen)/fr30.cpu
+ $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
+ FLAGS="with-scache with-profile=fn"
+ touch stamp-arch
+arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
+# @true
+
+stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srccgen)/fr30.cpu
+ $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
+ cpu=fr30bf mach=fr30 SUFFIX= FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
+ touch stamp-cpu
+cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
+# @true