|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 03/13] target/riscv: Split misa.mxl and misa.ext |
Date: | Thu, 14 Oct 2021 08:52:35 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |