]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/lm32/ChangeLog
sim: overhaul & unify endian settings management
authorMike Frysinger <vapier@gentoo.org>
Tue, 15 Jun 2021 23:51:52 +0000 (19:51 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 18 Jun 2021 03:20:13 +0000 (23:20 -0400)
commitf9a4d54332f9e1f75701ba43249a03cc631ec736
tree2dd0b32c633005ac4378a2282d9726885e09a7b5
parent4470708442cef1c818c4322f975d9017307f0243
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.
151 files changed:
sim/ChangeLog
sim/Makefile.in
sim/aarch64/ChangeLog
sim/aarch64/aclocal.m4
sim/aarch64/configure
sim/aarch64/configure.ac
sim/aclocal.m4
sim/arm/ChangeLog
sim/arm/aclocal.m4
sim/arm/configure
sim/arm/configure.ac
sim/avr/ChangeLog
sim/avr/aclocal.m4
sim/avr/configure
sim/avr/configure.ac
sim/avr/interp.c
sim/bfin/ChangeLog
sim/bfin/aclocal.m4
sim/bfin/configure
sim/bfin/configure.ac
sim/bfin/interp.c
sim/bpf/ChangeLog
sim/bpf/aclocal.m4
sim/bpf/configure
sim/bpf/configure.ac
sim/common/ChangeLog
sim/common/Make-common.in
sim/common/sim-config.c
sim/common/sim-config.h
sim/config.h.in
sim/configure
sim/configure.ac
sim/cr16/ChangeLog
sim/cr16/aclocal.m4
sim/cr16/configure
sim/cr16/configure.ac
sim/cr16/interp.c
sim/cris/ChangeLog
sim/cris/aclocal.m4
sim/cris/configure
sim/cris/configure.ac
sim/cris/sim-if.c
sim/d10v/ChangeLog
sim/d10v/aclocal.m4
sim/d10v/configure
sim/d10v/configure.ac
sim/erc32/ChangeLog
sim/erc32/configure
sim/example-synacor/ChangeLog
sim/example-synacor/aclocal.m4
sim/example-synacor/configure
sim/example-synacor/configure.ac
sim/example-synacor/interp.c
sim/frv/ChangeLog
sim/frv/aclocal.m4
sim/frv/configure
sim/frv/configure.ac
sim/frv/sim-if.c
sim/ft32/ChangeLog
sim/ft32/aclocal.m4
sim/ft32/configure
sim/ft32/configure.ac
sim/ft32/interp.c
sim/h8300/ChangeLog
sim/h8300/aclocal.m4
sim/h8300/compile.c
sim/h8300/configure
sim/h8300/configure.ac
sim/iq2000/ChangeLog
sim/iq2000/aclocal.m4
sim/iq2000/configure
sim/iq2000/configure.ac
sim/iq2000/sim-if.c
sim/lm32/ChangeLog
sim/lm32/aclocal.m4
sim/lm32/configure
sim/lm32/configure.ac
sim/lm32/sim-if.c
sim/m32c/ChangeLog
sim/m32c/configure
sim/m32r/ChangeLog
sim/m32r/aclocal.m4
sim/m32r/configure
sim/m32r/configure.ac
sim/m32r/sim-if.c
sim/m4/sim_ac_option_endian.m4
sim/m4/sim_ac_output.m4
sim/m68hc11/ChangeLog
sim/m68hc11/aclocal.m4
sim/m68hc11/configure
sim/m68hc11/configure.ac
sim/m68hc11/interp.c
sim/mcore/ChangeLog
sim/mcore/aclocal.m4
sim/mcore/configure
sim/mcore/configure.ac
sim/microblaze/ChangeLog
sim/microblaze/aclocal.m4
sim/microblaze/configure
sim/microblaze/configure.ac
sim/mips/ChangeLog
sim/mips/aclocal.m4
sim/mips/configure
sim/mips/configure.ac
sim/mn10300/ChangeLog
sim/mn10300/aclocal.m4
sim/mn10300/configure
sim/mn10300/configure.ac
sim/mn10300/interp.c
sim/moxie/ChangeLog
sim/moxie/aclocal.m4
sim/moxie/configure
sim/moxie/configure.ac
sim/moxie/interp.c
sim/msp430/ChangeLog
sim/msp430/aclocal.m4
sim/msp430/configure
sim/msp430/configure.ac
sim/msp430/msp430-sim.c
sim/or1k/ChangeLog
sim/or1k/aclocal.m4
sim/or1k/configure
sim/or1k/configure.ac
sim/or1k/sim-if.c
sim/ppc/ChangeLog
sim/ppc/Makefile.in
sim/ppc/configure
sim/ppc/configure.ac
sim/pru/ChangeLog
sim/pru/aclocal.m4
sim/pru/configure
sim/pru/configure.ac
sim/pru/interp.c
sim/riscv/ChangeLog
sim/riscv/aclocal.m4
sim/riscv/configure
sim/riscv/configure.ac
sim/riscv/interp.c
sim/rl78/ChangeLog
sim/rl78/configure
sim/rx/ChangeLog
sim/rx/configure
sim/sh/ChangeLog
sim/sh/aclocal.m4
sim/sh/configure
sim/sh/configure.ac
sim/v850/ChangeLog
sim/v850/aclocal.m4
sim/v850/configure
sim/v850/configure.ac
sim/v850/interp.c