binutils-gdb/sim
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
..
aarch64 sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
arm sim: install various doc files 2021-11-19 03:36:45 -05:00
avr sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
bfin sim: syscall: hoist argc/argn/argnlen to common code 2021-11-16 02:13:42 -05:00
bpf sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
common sim: use program_transform_name for libsim 2021-11-18 19:56:45 -05:00
cr16 sim: cr16: fix build on gcc-12 (NULL comparison) 2021-11-16 23:32:00 +00:00
cris sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
d10v sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
erc32 sim: install various doc files 2021-11-19 03:36:45 -05:00
example-synacor sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
frv sim: install various doc files 2021-11-19 03:36:45 -05:00
ft32 sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
h8300 Fix intermittent failures on the H8, particularly H8/SX tests. 2021-11-20 13:06:15 -05:00
igen sim: hoist mn10300 & v850 igen rules up to common builds 2021-11-02 22:59:07 -04:00
iq2000 sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
lm32 sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
m4 sim: bfin: add support for SDL2 2021-09-13 22:45:19 -04:00
m32c sim: hoist gencode & opc2c build rules up to common builds 2021-11-02 22:59:07 -04:00
m32r sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
m68hc11 sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
mcore sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
microblaze sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
mips sim: mips: avoid _ namespace 2021-11-25 23:48:45 -05:00
mn10300 sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
moxie sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
msp430 sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
or1k sim: install various doc files 2021-11-19 03:36:45 -05:00
ppc sim: install various doc files 2021-11-19 03:36:45 -05:00
pru sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
riscv sim: callback: expose argv & environ 2021-11-16 01:13:39 -05:00
rl78 sim: rl78: drop obsolete manual dependency rules 2021-10-31 05:09:09 -04:00
rx sim: install various doc files 2021-11-19 03:36:45 -05:00
sh sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
testsuite sim: testsuite: rework sim_init usage 2021-11-26 19:48:05 -05:00
v850 sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
.gitignore sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
aclocal.m4 sim: unify reserved instruction bits settings 2021-07-01 20:53:00 -04:00
arch-subdir.mk.in sim: ppc: fallback when ln is not available [PR sim/18864] 2021-10-03 11:36:30 -04:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
config.h.in sim: bfin: add support for SDL2 2021-09-13 22:45:19 -04:00
configure sim: avoid installing headers when there is no sim 2021-11-18 19:45:54 -05:00
configure.ac sim: avoid installing headers when there is no sim 2021-11-18 19:45:54 -05:00
COPYING sim: clarify license text via COPYING file 2021-11-06 01:44:06 -04:00
MAINTAINERS gdb/sim: update my email address 2021-11-02 09:20:24 +00:00
Makefile.am sim: install various doc files 2021-11-19 03:36:45 -05:00
Makefile.in sim: testsuite: fix objdir handling 2021-11-26 19:27:21 -05:00
README-HACKING sim: hw: rework configure option & device selection 2021-06-21 21:36:51 -04:00