|
From: | Richard Henderson |
Subject: | Re: [PATCH v6 13/25] target/riscv: Introduce mmuidx_priv |
Date: | Mon, 27 Mar 2023 09:29:11 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
On 3/26/23 19:07, LIU Zhiwei wrote:
+static inline int mmuidx_priv(int mmu_idx) +{ + int ret = mmu_idx & 3; + if (ret == MMUIdx_S_SUM) { + ret = PRV_S; + } + return ret; +} +Can we remove the PRIV from the tb flags after we have this function?
No, because this is the priv of the memory operation as modified by e.g. MPRV, not the true cpu priv.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |