riscv: Fix defination of TW bits in mstatus CSR
PATCH 1/1 riscv: Fix defination of TW bits in mstatus CSR
The origin defination of TW bits in mstatus is not correct. This patch fixes the problem.
Signed-off-by Ian Jiang <[email protected]>
--- target/riscv/cpu_bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/cpu_bits.h +1 -1
@@ -349,7 +349,7 @@#define MSTATUS_MXR 0x00080000#define MSTATUS_VM 0x1F000000/* until: priv-1.9.1 */ #define MSTATUS_TVM 0x00100000/* since: priv-1.10 */ -#define MSTATUS_TW 0x20000000/* since: priv-1.10 */ +#define MSTATUS_TW 0x00200000/* since: priv-1.10 */ #define MSTATUS_TSR 0x40000000/* since: priv-1.10 */ #define MSTATUS_MTL 0x4000000000ULL#define MSTATUS_MPV 0x8000000000ULL
Signature · 1 line
2.17.1
Quoted 5 lines · Ian Jiang
The origin defination of TW bits in mstatus is not correct. This patch fixes the problem.
Signed-off-by Ian Jiang <[email protected]>
Reviewed-by Alistair Francis <[email protected]>
Alistair
Quoted 21 lines
--- target/riscv/cpu_bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/riscv/cpu_bits.h +1
-2@@ -349,7 +349,7 @@#define MSTATUS_MXR 0x00080000#define MSTATUS_VM 0x1F000000/* until: priv-1.9.1 */ #define MSTATUS_TVM 0x00100000/* since: priv-1.10 */ -#define MSTATUS_TW 0x20000000/* since: priv-1.10 */ +#define MSTATUS_TW 0x00200000/* since: priv-1.10 */ #define MSTATUS_TSR 0x40000000/* since: priv-1.10 */ #define MSTATUS_MTL 0x4000000000ULL#define MSTATUS_MPV 0x8000000000ULL --2.17.1