]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-target.c
trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value
authorThomas Huth <thuth@redhat.com>
Thu, 7 Sep 2023 11:35:00 +0000 (13:35 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 Sep 2023 10:08:52 +0000 (13:08 +0300)
commitded625e7aa6a7f3173a22657f7dc0e9ab3d8fa3b
tree21c63bb1e087b0a4aa1cc1e6c4e6f25ef84c68e4
parentd417e2214d3adfd862bdf7afb3392e7f9de7fc05
trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value

TARGET_BIG_ENDIAN is *always* defined, either as 0 for little endian
targets or as 1 for big endian targets. So we can use this as a value
directly in places that need such a 0 or 1 for some reason, instead
of taking a detour through an additional local variable or something
similar.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
cpu.c
hw/microblaze/boot.c
hw/mips/jazz.c
hw/mips/malta.c
hw/mips/mipssim.c
hw/nios2/boot.c
hw/xtensa/sim.c
hw/xtensa/xtfpga.c
target/arm/cpu.h