summary refs log tree commit diff stats
path: root/target/mips/cpu.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-09-27 09:05:33 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-10-15 12:21:06 -0300
commitd70e58958da3165bb35d33a69c9d1937674dd6ce (patch)
tree79a95cad0eae35376cec4a623a422ee127c39093 /target/mips/cpu.h
parent35845cf8fe8b484dcd5cead7a2b68d7c3099948b (diff)
downloadfocaccia-qemu-d70e58958da3165bb35d33a69c9d1937674dd6ce.tar.gz
focaccia-qemu-d70e58958da3165bb35d33a69c9d1937674dd6ce.zip
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>
Diffstat (limited to 'target/mips/cpu.h')
-rw-r--r--target/mips/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/mips/cpu.h b/target/mips/cpu.h
index 3e906a175a..070e11fe0d 100644
--- a/target/mips/cpu.h
+++ b/target/mips/cpu.h
@@ -1209,6 +1209,9 @@ struct ArchCPU {
 
     Clock *clock;
     Clock *count_div; /* Divider for CP0_Count clock */
+
+    /* Properties */
+    bool is_big_endian;
 };
 
 /**