]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/mips: Check CPU endianness at runtime using env_is_bigendian()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 17 Apr 2025 08:47:00 +0000 (10:47 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:09:58 +0000 (17:09 +0200)
commit33fa8f02a91986c6c3e7de748964a312c14a5a0d
treeac179cea87da8f776079c8e8431394cba70b1cf2
parent56f8fb6886c49a99962d50912a8dde9e8dbfc306
target/mips: Check CPU endianness at runtime using env_is_bigendian()

Since CPU endianness can be toggled at runtime before resetting,
checking the endianness at build time preprocessing the
TARGET_BIG_ENDIAN definition isn't correct. We have to call
mips_env_is_bigendian() to get the CPU endianness at runtime.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250417131004.47205-4-philmd@linaro.org>
target/mips/tcg/msa_helper.c