binutils-gdb/sim/cris
Mike Frysinger e8f20a28b1 sim: split program path out of argv vector
We use the program argv to both find the program to run (argv[0]) and
to hold the arguments to the program.  Most of the time this is fine,
but if we want to let programs specify argv[0] independently (which is
possible in standard *NIX programs), this double duty doesn't work.

So let's split the path to the program to run out into a separate
field by itself.  This simplifies the various sim_open funcs too.

By itself, this code is more of a logical cleanup than something that
is super useful.  But it will open up customization of argv[0] in a
follow up commit.  Split the changes to make it easier to review.
2021-11-15 02:53:29 -05:00
..
arch.c sim: namespace sim_machs 2021-06-30 01:52:51 -04:00
arch.h
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
cpuall.h
cpuv10.c sim: cgen: delete unused record_trace_results functions 2021-06-28 11:25:21 -04:00
cpuv10.h
cpuv32.c sim: cgen: delete unused record_trace_results functions 2021-06-28 11:25:21 -04:00
cpuv32.h
cris-sim.h sim: cris: fix a few missing prototype warnings 2021-06-24 23:52:06 -04:00
cris-tmpl.c sim: cris: clean up missing func prototype warnings 2021-11-08 22:48:55 -05:00
crisv10f.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
crisv32f.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
decodev10.c sim: bpf/cris: include cgen-mem in decoders 2021-06-27 10:54:06 -04:00
decodev10.h sim: cris: clean up missing func prototype warnings 2021-11-08 22:48:55 -05:00
decodev32.c sim: bpf/cris: include cgen-mem in decoders 2021-06-27 10:54:06 -04:00
decodev32.h sim: cris: clean up missing func prototype warnings 2021-11-08 22:48:55 -05:00
dv-cris_900000xx.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-cris.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-rv.c sim: assume sys/select.h always exists 2021-06-12 22:19:30 -04:00
local.mk sim: hoist cgen mloop rules up to common builds 2021-11-02 22:59:07 -04:00
Makefile.in sim: cris: clean up missing func prototype warnings 2021-11-08 22:48:55 -05:00
mloop.in sim: mloop: mark a few conditionally used funcs as unused 2021-11-03 01:19:43 -04:00
modelv10.c
modelv32.c
rvdummy.c sim: assume sys/select.h always exists 2021-06-12 22:19:30 -04:00
semcrisv10f-switch.c
semcrisv32f-switch.c
sim-if.c sim: split program path out of argv vector 2021-11-15 02:53:29 -05:00
sim-main.h sim: cgen: invert sim_state storage for cgen ports 2021-05-17 00:46:32 -04:00
traps.c sim: cris: fix a few missing prototype warnings 2021-06-24 23:52:06 -04:00