qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 03/16] target/riscv: save and restore elp state on priv tr


From: Richard Henderson
Subject: Re: [PATCH v4 03/16] target/riscv: save and restore elp state on priv transitions
Date: Fri, 16 Aug 2024 12:59:43 +1000
User-agent: Mozilla Thunderbird

On 8/16/24 11:06, Deepak Gupta wrote:
@@ -546,6 +575,15 @@ void riscv_cpu_swap_hypervisor_regs(CPURISCVState *env)
      }
      bool current_virt = env->virt_enabled;
+ /*
+     * If zicfilp extension available and henvcfg.LPE = 1,
+     * then apply SPELP mask on mstatus
+     */
+    if (env_archcpu(env)->cfg.ext_zicfilp &&
+        get_field(env->henvcfg, HENVCFG_LPE)) {
+        mstatus_mask |= SSTATUS_SPELP;
+    }
+

I think this hunk belongs with the previous patch.

Otherwise.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]