Introduce CPUClass::is_big_endian() handler and expose
the cpu_is_big_endian() method. This will be useful later
when endianness will be propagated in the slow paths,
allowing removal of various TARGET_BIG_ENDIAN uses.
Philippe Mathieu-Daudé (8):
exec/tswap: Massage target_needs_bswap() definition
hw/core/cpu: Introduce CPUClass::is_big_endian() handler
target/arm: Implement CPUClass::is_big_endian
target/microblaze: Implement CPUClass::is_big_endian
target/mips: Declare mips_env_is_bigendian() in 'internal.h'
target/mips: Implement CPUClass::is_big_endian
target/ppc: Register CPUClass::is_big_endian
hw/core/cpu: Expose cpu_is_big_endian() method
include/exec/tswap.h | 2 +-
include/hw/core/cpu.h | 11 ++++++++++-
target/mips/internal.h | 5 +++++
hw/core/cpu-common.c | 14 ++++++++++++++
target/arm/cpu.c | 6 ++++++
target/microblaze/cpu.c | 8 ++++++++
target/mips/cpu.c | 6 ++++++
target/mips/tcg/ldst_helper.c | 15 +++++----------
target/ppc/cpu_init.c | 5 +++--
9 files changed, 58 insertions(+), 14 deletions(-)
--
2.45.2