aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-10-26 16:21:34 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-10-26 16:21:34 +0000
commite4f5c43e770c77e2f566c3dcdd8e02043a78e2a6 (patch)
tree5b5aa3db991938d26971360e847415e5c9d132ba /sim
parent49d97c60774b43c52db48073e7e8e2d38be18d3c (diff)
downloadgdb-e4f5c43e770c77e2f566c3dcdd8e02043a78e2a6.zip
gdb-e4f5c43e770c77e2f566c3dcdd8e02043a78e2a6.tar.gz
gdb-e4f5c43e770c77e2f566c3dcdd8e02043a78e2a6.tar.bz2
2000-10-26 Ben Elliston <bje@redhat.com>
* cgen.sh: Handle an isa argument between cpu and mach. Default to `all'. Pass `-i' options to cgen applications. * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode, cgen-desc): Pass $(isa) to cgen.sh.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog7
-rw-r--r--sim/common/Make-common.in12
-rw-r--r--sim/common/cgen.sh10
3 files changed, 22 insertions, 7 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 523b9f9..32b9762 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,10 @@
+2000-10-26 Ben Elliston <bje@redhat.com>
+
+ * cgen.sh: Handle an isa argument between cpu and mach. Default to
+ `all'. Pass `-i' options to cgen applications.
+ * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
+ cgen-desc): Pass $(isa) to cgen.sh.
+
2000-10-08 Ben Elliston <bje@redhat.com>
* cgen-utils.c (cgen_rtx_error): New function.
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 4ee4acb..98e663b 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -684,26 +684,26 @@ CGEN_FLAGS_TO_PASS = \
cgen-arch: force
$(SHELL) $(srccom)/cgen.sh arch $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" ignored $(mach) ignored ignored
-
+ $(arch) "$(FLAGS)" ignored "$(isa)" $(mach) ignored ignored
+
cgen-cpu: force
$(SHELL) $(srccom)/cgen.sh cpu $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
cgen-decode: force
$(SHELL) $(srccom)/cgen.sh decode $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" ignored
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" ignored
cgen-cpu-decode: force
$(SHELL) $(srccom)/cgen.sh cpu-decode $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
cgen-desc: force
$(SHELL) $(srccom)/cgen.sh desc $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" ignored
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" ignored
## End COMMON_POST_CONFIG_FRAG
diff --git a/sim/common/cgen.sh b/sim/common/cgen.sh
index 5ee7db8..58449af 100644
--- a/sim/common/cgen.sh
+++ b/sim/common/cgen.sh
@@ -20,8 +20,9 @@ cgenflags=$5
arch=$6
archflags=$7
cpu=$8
-mach=$9
+isa=$9
# bring parms past 9 portably into view
+shift ; mach=$9
shift ; suffix=$9
shift ; extrafiles=$9
@@ -32,6 +33,10 @@ uppercase='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ARCH=`echo ${arch} | tr "${lowercase}" "${uppercase}"`
CPU=`echo ${cpu} | tr "${lowercase}" "${uppercase}"`
+if test -z "$isa" ; then
+ isa=all
+fi
+
case $action in
arch)
rm -f tmp-arch.h1 tmp-arch.h
@@ -44,6 +49,7 @@ arch)
-f "${archflags}" \
-m ${mach} \
-a ${arch} \
+ -i ${isa} \
-A tmp-arch.h1 \
-B tmp-arch.c1 \
-N tmp-all.h1
@@ -91,6 +97,7 @@ cpu | decode | cpu-decode)
-f "${archflags}" \
-m ${mach} \
-a ${arch} \
+ -i ${isa} \
${fileopts}
case $action in
@@ -152,6 +159,7 @@ desc)
-f "${archflags}" \
-m ${mach} \
-a ${arch} \
+ -i ${isa} \
-H tmp-desc.h1 \
-C tmp-desc.c1 \
-O tmp-opc.h1