[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 1/5] target/riscv: Add a virtualised MMU Mode
From: |
Richard Henderson |
Subject: |
Re: [PATCH v1 1/5] target/riscv: Add a virtualised MMU Mode |
Date: |
Fri, 23 Oct 2020 12:13:34 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 10/23/20 8:26 AM, Alistair Francis wrote:
> +++ b/target/riscv/cpu-param.h
> @@ -18,6 +18,6 @@
> # define TARGET_VIRT_ADDR_SPACE_BITS 32 /* sv32 */
> #endif
> #define TARGET_PAGE_BITS 12 /* 4 KiB Pages */
> -#define NB_MMU_MODES 4
> +#define NB_MMU_MODES 8
Is there really a PRV_M + virt enabled state?
> +#define TB_FLAGS_PRIV_MMU_MASK 3
...
> - int mode = mmu_idx;
> + int mode = mmu_idx & 0x3;
Use that MASK here?
r~
- [PATCH v1 0/5] Fix the Hypervisor access functions, Alistair Francis, 2020/10/23
- [PATCH v1 2/5] target/riscv: Set the virtualised MMU mode when doing hyp accesses, Alistair Francis, 2020/10/23
- [PATCH v1 3/5] target/riscv: Remove the HS_TWO_STAGE flag, Alistair Francis, 2020/10/23
- [PATCH v1 1/5] target/riscv: Add a virtualised MMU Mode, Alistair Francis, 2020/10/23
- Re: [PATCH v1 1/5] target/riscv: Add a virtualised MMU Mode,
Richard Henderson <=
- [PATCH v1 5/5] target/riscv: Split the Hypervisor execute load helpers, Alistair Francis, 2020/10/23
- [PATCH v1 4/5] target/riscv: Remove the hyp load and store functions, Alistair Francis, 2020/10/23