binutils-gdb/sim/testsuite/h8300
Mike Frysinger c0d6a6e582 sim: testsuite: rework sim_init usage
The sim_init function was called by runtest for each test when --tool
was set to sim.  When we changed to --tool '' to collapse the testsuite
dir, the init function was no longer called on every test.  However, it
was still being called explicitly by config/default.exp.  It's not clear
why that explicit call ever existed since, in the past, it meant it was
redundant.

Lets drop the single sim_init call in config/default.exp and move it out
to all our tests.  This replicates the runtest behavior so we can setup
variables on a per-test basis which allows us to recollapse the sim_path
logic back.  We'll also leverage this in the future for toolchain setup.

Also add a few comments clarifying the overall runtime behavior.
2021-11-26 19:48:05 -05:00
..
addb.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
addl.s
adds.s
addw.s
addx.s
allinsn.exp sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
andb.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
andl.s
andw.s
band.s
bfld.s
biand.s
bra.s
brabc.s
bset.s
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
cmpb.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
cmpl.s
cmpw.s
daa.s
das.s
dec.s
div.s
extl.s
extw.s
inc.s
jmp.s
ldc.s
ldm.s
mac.s
mova.s
movb.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
movl.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
movmd.s
movsd.s
movw.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
mul.s
neg.s
nop.s
not.s
orb.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
orl.s
orw.s
rotl.s
rotr.s
rotxl.s
rotxr.s
shal.s
shar.s
shll.s
shlr.s
stack.s
stc.s
subb.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
subl.s
subs.s
subw.s
subx.s
tas.s
testutils.inc
xorb.s sim: h8300 add special case test. 2021-05-28 21:14:24 +09:00
xorl.s
xorw.s