target/mips: Expose MIPSCPU::is_big_endian property
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 27 Sep 2024 07:05:33 +0000 (09:05 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 15 Oct 2024 15:21:06 +0000 (12:21 -0300)
commitd70e58958da3165bb35d33a69c9d1937674dd6ce
tree79a95cad0eae35376cec4a623a422ee127c39093
parent35845cf8fe8b484dcd5cead7a2b68d7c3099948b
target/mips: Expose MIPSCPU::is_big_endian property

Add the "big-endian" property and set the CP0C0_BE bit in CP0_Config0.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241010215015.44326-15-philmd@linaro.org>
target/mips/cpu.c
target/mips/cpu.h