qemu/target/ppc
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
..
translate Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
arch_dump.c Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
compat.c
cpu_init.c target/ppc: add PPC_INTERRUPT_EBB and EBB exceptions 2022-03-02 06:51:36 +01:00
cpu-models.c
cpu-models.h
cpu-param.h
cpu-qom.h target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro 2022-03-06 22:23:09 +01:00
cpu.c
cpu.h Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
dfp_helper.c
excp_helper.c target/ppc: trigger PERFM EBBs from power8-pmu.c 2022-03-02 06:51:36 +01:00
fpu_helper.c target/ppc: Replicate Double->Single-Precision result 2022-03-20 23:35:27 +01:00
gdbstub.c
helper_regs.c
helper_regs.h
helper.h target/ppc: Implement xvcvbf16spn and xvcvspbf16 instructions 2022-03-02 06:51:38 +01:00
insn32.decode target/ppc: implement lxvr[bhwd]/stxvr[bhwd]x 2022-03-02 06:51:38 +01:00
insn64.decode target/ppc: implement plxssp/pstxssp 2022-03-02 06:51:38 +01:00
int_helper.c Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
internal.h
Kconfig
kvm_ppc.h
kvm-stub.c
kvm.c Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
machine.c target/ppc: make power8-pmu.c CONFIG_TCG only 2022-03-02 06:51:36 +01:00
mem_helper.c Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
meson.build target/ppc: make power8-pmu.c CONFIG_TCG only 2022-03-02 06:51:36 +01:00
misc_helper.c
mmu_common.c
mmu_helper.c
mmu-book3s-v3.c
mmu-book3s-v3.h
mmu-books.h
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c
mmu-hash64.h
mmu-radix64.c target/ppc: fix ISI fault cause for Radix MMU 2022-03-14 15:57:17 +01:00
mmu-radix64.h
monitor.c
power8-pmu-regs.c.inc
power8-pmu.c target/ppc: trigger PERFM EBBs from power8-pmu.c 2022-03-02 06:51:36 +01:00
power8-pmu.h target/ppc: make power8-pmu.c CONFIG_TCG only 2022-03-02 06:51:36 +01:00
spr_common.h
tcg-stub.c
timebase_helper.c
trace-events
trace.h
translate.c target/ppc: implement plxssp/pstxssp 2022-03-02 06:51:38 +01:00
user_only_helper.c