1 Dec 2004 03:32
sim: Handle and pass new required option -OPC for CGEN "desc".
Hans-Peter Nilsson <hans-peter.nilsson <at> axis.com>
2004-12-01 02:32:59 GMT
2004-12-01 02:32:59 GMT
Most CGEN-based simulators use the <target>-desc.h file from opcodes (and by most, I mean two out of the total three), see sim/m32r/Makefile.in and sim/frv/Makefile.in. When the CGEN option "-OPC" was introduced for generating that file, the CGEN caller in opcodes was updated, but the one in sim wasn't. So i960 broke. To repeat, build sim --target=i960-elf --enable-cgen-maint or go to build/sim/i960 and make "stamp-desc" (may need to "rm stamp-desc" or "touch cgen/cpu/i960.cpu"). You'll see: make cgen-desc CGEN=`if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/guile; else echo guile ; fi` CGENFLAGS="-v" \ cpu=i960 mach=all \ archfile=/n/asic/slask/hp/simtest/src/sim/i960/../../cgen/cpu/i960.cpu make[1]: Entering directory `/n/asic_slask/hp/simtest/srcobji960/sim/i960' /bin/sh /n/asic/slask/hp/simtest/src/sim/i960/../common/cgen.sh desc /n/asic/slask/hp/simtest/src/sim/i960 \ guile /n/asic/slask/hp/simtest/src/sim/i960/../../cgen "-v" \ i960 "" i960 "" all "" \ /n/asic/slask/hp/simtest/src/sim/i960/../../cgen/cpu/i960.cpu ignored Skipping slib/sort, already loaded. Skipping slib/random, already loaded. No backtrace available. cgen -s /n/asic/slask/hp/simtest/src/sim/i960/../../cgen/cgen-opc.scm -s /n/asic/slask/hp/simtest/src/sim/i960/../../cgen -v -f -m all -a /n/asic/slask/hp/simtest/src/sim/i960/../../cgen/cpu/i960.cpu -i all -H tmp-desc.h1 -C tmp-desc.c1 -O tmp-opc.h1 Loading cpu description /n/asic/slask/hp/simtest/src/sim/i960/../../cgen/cpu/i960.cpu Including file simplify.inc ... Analyzing instruction set ...(Continue reading)
[...]
Testsuites for "check-sim" are quite rare. The way one normally
obtains confidence in regenerated simulators is by running the
gcc/gdb tests against the changed sim.
Thanks for your care & feeding of cgen. (I'll get back to
you on the other cris stuff later today.)
- FChE
I'd be most thankful to get that SID issue
resolved. What are y'all using for CGEN debugging? I tried
psd-1.2.1 but it doesn't seem guile-compatible.
brgds, H-P
RSS Feed