]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec/tswap: Massage target_needs_bswap() definition
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 24 Sep 2024 17:37:08 +0000 (19:37 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 15 Oct 2024 14:55:09 +0000 (11:55 -0300)
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>

include/exec/tswap.h

index b7a4191347546acfd8324cee9d3e0c15fc498d81..ecd4faef015ea3375c8313485746ef53bddc2db9 100644 (file)
@@ -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)