diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2004-12-01 02:29:30 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2004-12-01 02:29:30 +0000 |
commit | ad6e5d2e3124ddc20569dd7a9fce19965a2ad4e3 (patch) | |
tree | d3ad8bc653f9e974674db88825d14030f4e9dc54 /sim | |
parent | 2b99d679a642547ebeaaf56faf72613146d20f18 (diff) | |
download | gdb-ad6e5d2e3124ddc20569dd7a9fce19965a2ad4e3.zip gdb-ad6e5d2e3124ddc20569dd7a9fce19965a2ad4e3.tar.gz gdb-ad6e5d2e3124ddc20569dd7a9fce19965a2ad4e3.tar.bz2 |
* cgen.sh: New thirteenth parameter opcfile, defaulting to
/dev/null.
<case desc>: Pass -OPC opcfile.
* Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
parameter to cgen.sh.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/Make-common.in | 2 | ||||
-rw-r--r-- | sim/common/cgen.sh | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 6ccf986..dbcc0eb 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -739,6 +739,6 @@ cgen-desc: force $(SHELL) $(srccom)/cgen.sh desc $(srcdir) \ $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \ - $(archfile) ignored + $(archfile) ignored $(opcfile) ## End COMMON_POST_CONFIG_FRAG diff --git a/sim/common/cgen.sh b/sim/common/cgen.sh index 172edcb..8718835 100644 --- a/sim/common/cgen.sh +++ b/sim/common/cgen.sh @@ -3,7 +3,7 @@ # # Usage: /bin/sh cgen.sh {"arch"|"cpu"|"decode"|"defs"|"cpu-decode"} \ # srcdir cgen cgendir cgenflags \ -# arch archflags cpu mach suffix archfile extrafiles +# arch archflags cpu mach suffix archfile extrafiles opcfile # # We store the generated files in the source directory until we decide to # ship a Scheme interpreter (or other implementation) with gdb/binutils. @@ -26,9 +26,12 @@ shift ; mach=$9 shift ; suffix=$9 shift ; archfile=$9 shift ; extrafiles=$9 +shift ; opcfile=$9 rootdir=${srcdir}/../.. +test -z "${opcfile}" && opcfile=/dev/null + if test -z "$isa" ; then isa=all prefix=$cpu @@ -196,6 +199,7 @@ desc) ${cgen} -s ${cgendir}/cgen-opc.scm \ -s ${cgendir} \ ${cgenflags} \ + -OPC ${opcfile} \ -f "${archflags}" \ -m ${mach} \ -a ${archfile} \ |