]> git.proxmox.com Git - mirror_qemu.git/commit - target/alpha/translate.c
Replace config-time define HOST_WORDS_BIGENDIAN
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 23 Mar 2022 15:57:17 +0000 (19:57 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2022 08:50:37 +0000 (10:50 +0200)
commite03b56863d2bca3e649e81531c1b0299524481ae
treeb46f7db9476a07f55f4aba6851fb0b832519fda7
parent3f6c2e8b79504e20bec8628f0f1accf3bc6d85b6
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>
84 files changed:
accel/kvm/kvm-all.c
accel/tcg/atomic_template.h
audio/audio.h
audio/dbusaudio.c
disas.c
hw/core/loader.c
hw/display/artist.c
hw/display/pl110_template.h
hw/display/pxa2xx_lcd.c
hw/display/vga.c
hw/display/virtio-gpu-gl.c
hw/net/can/ctucan_core.h
hw/net/vmxnet3.h
hw/s390x/event-facility.c
hw/virtio/vhost.c
include/exec/cpu-all.h
include/exec/cpu-common.h
include/exec/memop.h
include/exec/memory.h
include/fpu/softfloat-types.h
include/hw/core/cpu.h
include/hw/i386/intel_iommu.h
include/hw/i386/x86-iommu.h
include/hw/virtio/virtio-access.h
include/hw/virtio/virtio-gpu-bswap.h
include/libdecnumber/dconfig.h
include/net/eth.h
include/qemu/bswap.h
include/qemu/host-utils.h
include/qemu/int128.h
include/ui/qemu-pixman.h
linux-user/arm/nwfpe/double_cpdo.c
linux-user/arm/nwfpe/fpa11_cpdt.c
linux-user/ppc/signal.c
linux-user/syscall.c
meson.build
net/net.c
net/util.h
target/alpha/translate.c
target/arm/cpu.h
target/arm/crypto_helper.c
target/arm/helper.c
target/arm/kvm64.c
target/arm/neon_helper.c
target/arm/sve_helper.c
target/arm/translate-a64.h
target/arm/translate-sve.c
target/arm/translate-vfp.c
target/arm/translate.c
target/arm/vec_internal.h
target/hppa/translate.c
target/i386/cpu.h
target/i386/tcg/translate.c
target/mips/cpu.h
target/mips/tcg/lmmi_helper.c
target/mips/tcg/msa_helper.c
target/ppc/arch_dump.c
target/ppc/cpu.h
target/ppc/int_helper.c
target/ppc/kvm.c
target/ppc/mem_helper.c
target/ppc/translate/vmx-impl.c.inc
target/ppc/translate/vsx-impl.c.inc
target/riscv/insn_trans/trans_rvv.c.inc
target/riscv/vector_helper.c
target/s390x/tcg/translate.c
target/s390x/tcg/translate_vx.c.inc
target/s390x/tcg/vec.h
target/sparc/vis_helper.c
target/xtensa/cpu.h
tcg/aarch64/tcg-target.c.inc
tcg/arm/tcg-target.c.inc
tcg/mips/tcg-target.c.inc
tcg/ppc/tcg-target.c.inc
tcg/riscv/tcg-target.c.inc
tcg/tcg-op.c
tcg/tcg.c
tests/fp/platform.h
tests/qtest/vhost-user-blk-test.c
tests/qtest/virtio-blk-test.c
ui/vdagent.c
ui/vnc.c
util/bitmap.c
util/host-utils.c