binutils-gdb/sim
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
..
aarch64 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
arm sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
avr sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
bfin sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
bpf sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
common sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
cr16 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
cris sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
d10v sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
erc32 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
example-synacor sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
frv sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
ft32 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
h8300 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
igen sim: cleanup obsolete NULL fallback 2021-06-09 19:07:09 -04:00
iq2000 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
lm32 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
m4 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
m32c sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
m32r sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
m68hc11 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
mcore sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
microblaze sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
mips sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
mn10300 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
moxie sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
msp430 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
or1k sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
ppc sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
pru sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
riscv sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
rl78 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
rx sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
sh sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
testsuite sim: enable silent rules in common builds 2021-06-14 20:04:44 -04:00
v850 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
.gitignore sim: drop common/cconfig.h in favor of a single config.h 2016-01-09 03:52:30 -05:00
aclocal.m4 sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
ChangeLog sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
config.h.in 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
MAINTAINERS sim: readd myself as a maintainer 2021-01-29 22:11:45 -05:00
Makefile.am sim: common: start dedicated local.mk 2021-06-05 10:09:27 -04:00
Makefile.in sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
README-HACKING sim: create header namespace 2021-05-14 00:41:05 -04:00