[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/13] target/arm: The Cortex-R52 has a read-only CBAR
From: |
Peter Maydell |
Subject: |
[PATCH 02/13] target/arm: The Cortex-R52 has a read-only CBAR |
Date: |
Tue, 6 Feb 2024 13:29:20 +0000 |
The Cortex-R52 implements the Configuration Base Address Register
(CBAR), as a read-only register. Add ARM_FEATURE_CBAR_RO to this CPU
type, so that our implementation provides the register and the
associated qdev property.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/tcg/cpu32.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/arm/tcg/cpu32.c b/target/arm/tcg/cpu32.c
index 11253051156..311d654cdce 100644
--- a/target/arm/tcg/cpu32.c
+++ b/target/arm/tcg/cpu32.c
@@ -809,6 +809,7 @@ static void cortex_r52_initfn(Object *obj)
set_feature(&cpu->env, ARM_FEATURE_PMSA);
set_feature(&cpu->env, ARM_FEATURE_NEON);
set_feature(&cpu->env, ARM_FEATURE_GENERIC_TIMER);
+ set_feature(&cpu->env, ARM_FEATURE_CBAR_RO);
cpu->midr = 0x411fd133; /* r1p3 */
cpu->revidr = 0x00000000;
cpu->reset_fpsid = 0x41034023;
--
2.34.1
- [PATCH 00/13] hw/arm: Implement new machine mps3-an536 (Cortex-R52 MPS3 AN536 FPGA image), Peter Maydell, 2024/02/06
- [PATCH 05/13] hw/misc/mps2-scc: Fix condition for CFG3 register, Peter Maydell, 2024/02/06
- [PATCH 01/13] target/arm: Use new CBAR encoding for all v8 CPUs, not all aarch64 CPUs, Peter Maydell, 2024/02/06
- [PATCH 07/13] hw/misc/mps2-scc: Make changes needed for AN536 FPGA image, Peter Maydell, 2024/02/06
- [PATCH 02/13] target/arm: The Cortex-R52 has a read-only CBAR,
Peter Maydell <=
- [PATCH 06/13] hw/misc/mps2-scc: Factor out which-board conditionals, Peter Maydell, 2024/02/06
- [PATCH 04/13] target/arm: Allow access to SPSR_hyp from hyp mode, Peter Maydell, 2024/02/06
- [PATCH 03/13] target/arm: Add Cortex-R52 IMPDEF sysregs, Peter Maydell, 2024/02/06