xemu/target
Marc-André Lureau e03b56863d Replace config-time define HOST_WORDS_BIGENDIAN
Replace a config-time define with a compile time condition
define (compatible with clang and gcc) that must be declared prior to
its usage. This avoids having a global configure time define, but also
prevents from bad usage, if the config header wasn't included before.

This can help to make some code independent from qemu too.

gcc supports __BYTE_ORDER__ from about 4.6 and clang from 3.2.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[ For the s390x parts I'm involved in ]
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220323155743.1585078-7-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-06 10:50:37 +02:00
..
alpha Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
arm Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
avr target: Use ArchCPU as interface to target CPU 2022-03-06 22:23:09 +01:00
cris target: Use ArchCPU as interface to target CPU 2022-03-06 22:23:09 +01:00
hexagon target/hexagon: remove unused variable 2022-03-12 09:14:22 -08:00
hppa Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
i386 Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
m68k Replace qemu_gettimeofday() with g_get_real_time() 2022-04-06 10:50:37 +02:00
microblaze target: Use ArchCPU as interface to target CPU 2022-03-06 22:23:09 +01:00
mips Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
nios2 Replace qemu_gettimeofday() with g_get_real_time() 2022-04-06 10:50:37 +02:00
openrisc target: Use ArchCPU as interface to target CPU 2022-03-06 22:23:09 +01:00
ppc Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
riscv Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
rx target: Use ArchCPU as interface to target CPU 2022-03-06 22:23:09 +01:00
s390x Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
sh4 target/sh4: Remove old README.sh4 file 2022-03-31 21:29:15 +02:00
sparc Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
tricore target: Use ArchCPU as interface to target CPU 2022-03-06 22:23:09 +01:00
xtensa Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
Kconfig meson: Introduce target-specific Kconfig 2021-07-09 18:21:34 +02:00
meson.build Drop the deprecated unicore32 target 2021-05-12 18:20:52 +02:00