binutils-gdb/sim/mn10300
Mike Frysinger f9a4d54332 sim: overhaul & unify endian settings management
The m4 macro has 2 args: the "wire" settings (which represents the
hardwired port behavior), and the default settings (which are used
if nothing else is specified).  If none are specified, the arch is
expected to support both, and the value will be probed based on the
user runtime options or the input program.

Only two arches today set the default value (bpf & mips).  We can
probably let this go as it only shows up in one scenario: the sim
is invoked, but with no inputs, and no user endian selection.  This
means bpf will not behave like the other arches: an error is shown
and forces the user to make a choice.  If an input program is used
though, we'll still switch the default to that.  This allows us to
remove the WITH_DEFAULT_TARGET_BYTE_ORDER setting.

For the ports that set a "wire" endian, move it to the runtime init
of the respective sim_open calls.  This allows us to change the
WITH_TARGET_BYTE_ORDER to purely a user-selected configure setting
if they want to force a specific endianness.

With all the endian logic moved to runtime selection, we can move
the configure call up to the common dir so we only process it once
across all ports.

The ppc arch was picking the wire endian based on the target used,
but since we weren't doing that for other biendian arches, we can
let this go too.  We'll rely on the input selecting the endian, or
make the user decide.
2021-06-17 23:20:13 -04:00
..
aclocal.m4 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
am33-2.igen
am33.igen
ChangeLog sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
configure sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
configure.ac sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
dv-mn103cpu.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-mn103int.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-mn103iop.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-mn103ser.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-mn103tim.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
interp.c sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
Makefile.in sim: igen: harmonize tool variables 2021-06-08 00:57:58 -04:00
mn10300_sim.h sim: mn10300: tweak static inlines 2021-06-17 00:14:02 -04:00
mn10300.dc
mn10300.igen sim: mn10300: switch abort to sim_engine_abort 2021-06-14 23:46:41 -04:00
op_utils.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-main.c
sim-main.h sim: mn10300: tweak engine halt hook 2021-06-09 19:06:20 -04:00