[PATCH 01/11] target/arm: Add ARM_FEATURE_V8_R

Tobias Roehmel posted 11 patches 3 years, 7 months ago
Maintainers: Peter Maydell <peter.maydell@linaro.org>
There is a newer version of this series
[PATCH 01/11] target/arm: Add ARM_FEATURE_V8_R
Posted by Tobias Roehmel 3 years, 7 months ago
From: Tobias Röhmel <quic_trohmel@quicinc.com>

This flag is necessary to add features for the Cortex-R52.

Signed-off-by: Tobias Röhmel <quic_trohmel@quicinc.com>
---
 target/arm/cpu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index df677b2d5d..86e06116a9 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -2287,6 +2287,7 @@ enum arm_features {
     ARM_FEATURE_M_SECURITY, /* M profile Security Extension */
     ARM_FEATURE_M_MAIN, /* M profile Main Extension */
     ARM_FEATURE_V8_1M, /* M profile extras only in v8.1M and later */
+    ARM_FEATURE_V8_R,
 };
 
 static inline int arm_feature(CPUARMState *env, int feature)
-- 
2.25.1


Re: [PATCH 01/11] target/arm: Add ARM_FEATURE_V8_R
Posted by Peter Maydell 3 years, 7 months ago
On Thu, 14 Jul 2022 at 15:54, Tobias Roehmel <quic_trohmel@quicinc.com> wrote:
>
> From: Tobias Röhmel <quic_trohmel@quicinc.com>
>
> This flag is necessary to add features for the Cortex-R52.

Is it? Generally we try to avoid adding new ARM_FEATURE_*
flags unless there is no way to get the equivalent information
from some combination of the existing flags and the CPU ID registers.

-- PMM