[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/14] target/arm: Enable FEAT_ECV for 'max' CPU
From: |
Peter Maydell |
Subject: |
[PULL 08/14] target/arm: Enable FEAT_ECV for 'max' CPU |
Date: |
Fri, 8 Mar 2024 15:50:09 +0000 |
Enable all FEAT_ECV features on the 'max' CPU.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240301183219.2424889-9-peter.maydell@linaro.org
---
docs/system/arm/emulation.rst | 1 +
target/arm/tcg/cpu64.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst
index f67aea2d836..2a7bbb82dc4 100644
--- a/docs/system/arm/emulation.rst
+++ b/docs/system/arm/emulation.rst
@@ -28,6 +28,7 @@ the following architecture extensions:
- FEAT_DotProd (Advanced SIMD dot product instructions)
- FEAT_DoubleFault (Double Fault Extension)
- FEAT_E0PD (Preventing EL0 access to halves of address maps)
+- FEAT_ECV (Enhanced Counter Virtualization)
- FEAT_EPAC (Enhanced pointer authentication)
- FEAT_ETS (Enhanced Translation Synchronization)
- FEAT_EVT (Enhanced Virtualization Traps)
diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c
index 5fba2c0f040..9f7a9f3d2cc 100644
--- a/target/arm/tcg/cpu64.c
+++ b/target/arm/tcg/cpu64.c
@@ -1184,6 +1184,7 @@ void aarch64_max_tcg_initfn(Object *obj)
t = FIELD_DP64(t, ID_AA64MMFR0, TGRAN64_2, 2); /* 64k stage2 supported */
t = FIELD_DP64(t, ID_AA64MMFR0, TGRAN4_2, 2); /* 4k stage2 supported */
t = FIELD_DP64(t, ID_AA64MMFR0, FGT, 1); /* FEAT_FGT */
+ t = FIELD_DP64(t, ID_AA64MMFR0, ECV, 2); /* FEAT_ECV */
cpu->isar.id_aa64mmfr0 = t;
t = cpu->isar.id_aa64mmfr1;
--
2.34.1
- [PULL 00/14] target-arm queue, Peter Maydell, 2024/03/08
- [PULL 02/14] target/arm: Timer _EL02 registers UNDEF for E2H == 0, Peter Maydell, 2024/03/08
- [PULL 01/14] target/arm: Move some register related defines to internals.h, Peter Maydell, 2024/03/08
- [PULL 06/14] target/arm: Define CNTPCTSS_EL0 and CNTVCTSS_EL0, Peter Maydell, 2024/03/08
- [PULL 07/14] target/arm: Implement FEAT_ECV CNTPOFF_EL2 handling, Peter Maydell, 2024/03/08
- [PULL 05/14] target/arm: Implement new FEAT_ECV trap bits, Peter Maydell, 2024/03/08
- [PULL 08/14] target/arm: Enable FEAT_ECV for 'max' CPU,
Peter Maydell <=
- [PULL 04/14] target/arm: Don't allow RES0 CNTHCTL_EL2 bits to be written, Peter Maydell, 2024/03/08
- [PULL 11/14] tests/qtest: Add STM32L4x5 GPIO QTest testcase, Peter Maydell, 2024/03/08
- [PULL 13/14] hw/rtc/sun4v-rtc: Relicense to GPLv2-or-later, Peter Maydell, 2024/03/08
- [PULL 12/14] target/arm: Fix 32-bit SMOPA, Peter Maydell, 2024/03/08
- [PULL 03/14] target/arm: use FIELD macro for CNTHCTL bit definitions, Peter Maydell, 2024/03/08
- [PULL 10/14] hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC, Peter Maydell, 2024/03/08
- [PULL 14/14] target/arm: Move v7m-related code from cpu32.c into a separate file, Peter Maydell, 2024/03/08
- [PULL 09/14] hw/gpio: Implement STM32L4x5 GPIO, Peter Maydell, 2024/03/08
- Re: [PULL 00/14] target-arm queue, Peter Maydell, 2024/03/09