mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/riscv: Remove the hardcoded MSTATUS_SD macro
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: fcc125d96da941b56c817c9dd6068dc36478fc53.1619234854.git.alistair.francis@wdc.com
This commit is contained in:
parent
994b6bb2db
commit
4fd7455bb3
3 changed files with 27 additions and 14 deletions
|
@ -368,16 +368,6 @@
|
|||
#define MXL_RV64 2
|
||||
#define MXL_RV128 3
|
||||
|
||||
#if defined(TARGET_RISCV32)
|
||||
#define MSTATUS_SD MSTATUS32_SD
|
||||
#define MISA_MXL MISA32_MXL
|
||||
#define MXL_VAL MXL_RV32
|
||||
#elif defined(TARGET_RISCV64)
|
||||
#define MSTATUS_SD MSTATUS64_SD
|
||||
#define MISA_MXL MISA64_MXL
|
||||
#define MXL_VAL MXL_RV64
|
||||
#endif
|
||||
|
||||
/* sstatus CSR bits */
|
||||
#define SSTATUS_UIE 0x00000001
|
||||
#define SSTATUS_SIE 0x00000002
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue