aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-09-24 19:37:08 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-10-15 11:55:09 -0300
commit68e05eff508210c712845647ab55d0bfdd3e5e77 (patch)
tree893269efef0db8caa6a68952c09902d37b5f99b6
parent1d73353f236209e9b5987d7c6b30b2a32b739210 (diff)
downloadqemu-68e05eff508210c712845647ab55d0bfdd3e5e77.zip
qemu-68e05eff508210c712845647ab55d0bfdd3e5e77.tar.gz
qemu-68e05eff508210c712845647ab55d0bfdd3e5e77.tar.bz2
exec/tswap: Massage target_needs_bswap() definition
Invert target_needs_bswap() comparison to match the COMPILING_PER_TARGET definition (2 lines upper). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241010175246.15779-2-philmd@linaro.org>
-rw-r--r--include/exec/tswap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/tswap.h b/include/exec/tswap.h
index b7a4191..ecd4fae 100644
--- a/include/exec/tswap.h
+++ b/include/exec/tswap.h
@@ -28,7 +28,7 @@ bool target_words_bigendian(void);
#ifdef COMPILING_PER_TARGET
#define target_needs_bswap() (HOST_BIG_ENDIAN != TARGET_BIG_ENDIAN)
#else
-#define target_needs_bswap() (target_words_bigendian() != HOST_BIG_ENDIAN)
+#define target_needs_bswap() (HOST_BIG_ENDIAN != target_words_bigendian())
#endif /* COMPILING_PER_TARGET */
static inline uint16_t tswap16(uint16_t s)