On 11/25/21 8:39 AM, LIU Zhiwei wrote:
+static bool check_pmp_reg_index(CPURISCVState *env, uint32_t reg_index) +{ + if ((reg_index & 1) && (riscv_cpu_mxl(env) == MXL_RV64)) {
Let's make this != MXL_RV32. I suppose real RV128 will extend this restriction to mod 4, but that is not yet documented.
Otherwise, Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~