On 10/14/21 12:52 AM, LIU Zhiwei wrote:
@@ -360,6 +357,7 @@ static void riscv_cpu_reset(DeviceState *dev) mcc->parent_reset(dev); #ifndef CONFIG_USER_ONLY + env->misa_mxl = env->misa_mxl_max;As we have set misa_mxl in cpu_init_fn, why set it again here?
I guess we could drop this for now, but we'd need to add it back as soon as we can modify MXL in write_misa, as this is part of the reset spec.
r~