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>
---
target/arm/cpu.h | 12 ++----------
cpu.c | 6 +-----
hw/microblaze/boot.c | 9 ++-------
hw/mips/jazz.c | 10 ++--------
hw/mips/malta.c | 21 ++++-----------------
hw/mips/mipssim.c | 9 +--------
hw/nios2/boot.c | 9 ++-------
hw/xtensa/sim.c | 7 +------
hw/xtensa/xtfpga.c | 10 +++-------
9 files changed, 18 insertions(+), 75 deletions(-)