diff options
author | Ben Elliston <bje@au.ibm.com> | 2001-01-05 04:36:09 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2001-01-05 04:36:09 +0000 |
commit | 63fe103861d920a94a6c78c51ce3b0bcf0722af6 (patch) | |
tree | 2a3602928e71a6b94a9bebb066868dd4a32f58bf /sim/common | |
parent | 7eae7d229a837f21c5d552ec6f73ea175a910bb1 (diff) | |
download | gdb-63fe103861d920a94a6c78c51ce3b0bcf0722af6.zip gdb-63fe103861d920a94a6c78c51ce3b0bcf0722af6.tar.gz gdb-63fe103861d920a94a6c78c51ce3b0bcf0722af6.tar.bz2 |
2001-01-06 Ben Elliston <bje@redhat.com>
* cgen.sh: Allow extrafiles to include the semantics files when
generating an ISA-specific decoder.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/cgen.sh | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index dd88930..1caff73 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2001-01-06 Ben Elliston <bje@redhat.com> + + * cgen.sh: Allow extrafiles to include the semantics files when + generating an ISA-specific decoder. + 2000-12-27 Alexandre Oliva <aoliva@redhat.com> * Make-common.in (sim-io.o): Depend on targ-vals.h. diff --git a/sim/common/cgen.sh b/sim/common/cgen.sh index 14fa247..bf467e1 100644 --- a/sim/common/cgen.sh +++ b/sim/common/cgen.sh @@ -97,6 +97,12 @@ cpu | decode | cpu-decode) fileopts="$fileopts \ -T tmp-dec.h1 \ -D tmp-dec.c1" + case "$extrafiles" in + ignored) # Do nothing. + ;; + *) fileopts="$fileopts $extrafiles" + ;; + esac ;; esac @@ -151,6 +157,15 @@ cpu | decode | cpu-decode) sed $sedscript < tmp-dec.c1 > tmp-dec.c ${rootdir}/move-if-change tmp-dec.c ${srcdir}/decode${suffix}.c + if test -f tmp-sem.c1 ; then \ + sed $sedscript < tmp-sem.c1 > tmp-sem.c ; \ + ${rootdir}/move-if-change tmp-sem.c ${srcdir}/sem${suffix}.c ; \ + fi + if test -f tmp-semsw.c1 ; then \ + sed $sedscript < tmp-semsw.c1 > tmp-semsw.c ; \ + ${rootdir}/move-if-change tmp-semsw.c ${srcdir}/sem${suffix}-switch.c ; \ + fi + rm -f tmp-dec.h1 tmp-dec.c1 ;; esac |