mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target/riscv: Add a virtualised MMU Mode
Add a new MMU mode that includes the current virt mode. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 4b301bc0ea36da962fc1605371b65019ac3073df.1604464950.git.alistair.francis@wdc.com
This commit is contained in:
parent
3c8c36c908
commit
c445593d30
3 changed files with 14 additions and 3 deletions
|
@ -363,7 +363,9 @@ void QEMU_NORETURN riscv_raise_exception(CPURISCVState *env,
|
|||
target_ulong riscv_cpu_get_fflags(CPURISCVState *env);
|
||||
void riscv_cpu_set_fflags(CPURISCVState *env, target_ulong);
|
||||
|
||||
#define TB_FLAGS_MMU_MASK 3
|
||||
#define TB_FLAGS_MMU_MASK 7
|
||||
#define TB_FLAGS_PRIV_MMU_MASK 3
|
||||
#define TB_FLAGS_PRIV_HYP_ACCESS_MASK (1 << 2)
|
||||
#define TB_FLAGS_MSTATUS_FS MSTATUS_FS
|
||||
|
||||
typedef CPURISCVState CPUArchState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue