Re: [PATCH v4 1/5] target/riscv: Add a virtualised MMU Mode

2020-11-04 Thread Richard Henderson
On 11/3/20 8:43 PM, Alistair Francis wrote: > -#define NB_MMU_MODES 4 > +/* > + * The current MMU Modes are: > + * - U mode 0b000 > + * - S mode 0b001 > + * - M mode 0b011 > + * - U mode HLV/HLVX/HSV 0b100 > + * - S mode HLV/HLVX/HSV 0b101 > + * - M mode HLV/HLVX/HSV 0b111 > + */ > +#define N

[PATCH v4 1/5] target/riscv: Add a virtualised MMU Mode

2020-11-03 Thread Alistair Francis
Add a new MMU mode that includes the current virt mode. Signed-off-by: Alistair Francis --- target/riscv/cpu-param.h | 11 ++- target/riscv/cpu.h| 4 +++- target/riscv/cpu_helper.c | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/target/riscv/cpu-param.h