[WIP-for-10.1 v2 1/5] target/arm: Add the MECEn SCR_EL3 bit

Gustavo Romero posted 5 patches 5 months, 2 weeks ago
There is a newer version of this series
[WIP-for-10.1 v2 1/5] target/arm: Add the MECEn SCR_EL3 bit
Posted by Gustavo Romero 5 months, 2 weeks ago
The MECEn bit in SCR_EL3 enables access to the EL2 MECID registers from
EL2, so add it to the SCR mask list to use it later on.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
---
 target/arm/cpu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 302c24e232..8ce30ca857 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -1683,6 +1683,7 @@ static inline void xpsr_write(CPUARMState *env, uint32_t val, uint32_t mask)
 #define SCR_TRNDR             (1ULL << 40)
 #define SCR_ENTP2             (1ULL << 41)
 #define SCR_GPF               (1ULL << 48)
+#define SCR_MECEN             (1ULL << 49)
 #define SCR_NSE               (1ULL << 62)
 
 /* Return the current FPSCR value.  */
-- 
2.34.1
Re: [WIP-for-10.1 v2 1/5] target/arm: Add the MECEn SCR_EL3 bit
Posted by Richard Henderson 5 months, 2 weeks ago
On 7/4/25 09:14, Gustavo Romero wrote:
> The MECEn bit in SCR_EL3 enables access to the EL2 MECID registers from
> EL2, so add it to the SCR mask list to use it later on.
> 
> Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
> ---
>   target/arm/cpu.h | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/target/arm/cpu.h b/target/arm/cpu.h
> index 302c24e232..8ce30ca857 100644
> --- a/target/arm/cpu.h
> +++ b/target/arm/cpu.h
> @@ -1683,6 +1683,7 @@ static inline void xpsr_write(CPUARMState *env, uint32_t val, uint32_t mask)
>   #define SCR_TRNDR             (1ULL << 40)
>   #define SCR_ENTP2             (1ULL << 41)
>   #define SCR_GPF               (1ULL << 48)
> +#define SCR_MECEN             (1ULL << 49)
>   #define SCR_NSE               (1ULL << 62)
>   
>   /* Return the current FPSCR value.  */

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

r~