From 1aa8f14f2cef8c52bb8ca529593d013713d7886a Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 7 Feb 2023 09:25:23 +0000 Subject: [PATCH] arch-arm: Map MPIDR_EL1 to AArch32 version As of now the mapping is not actually needed: the MPIDR and MPIDR_EL1 registes are both read using the same helper (readMPIDR). In the future we could store the getMPIDR result in the AArch32 version without the need to re-calculate the fix affinity numbers Change-Id: Id42d1994cdd1722f07874ffa7364154cf011e00a Signed-off-by: Giacomo Travaglini Reviewed-by: Richard Cooper Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/70462 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/arch/arm/regs/misc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/arm/regs/misc.cc b/src/arch/arm/regs/misc.cc index 000124c7ad..706716eb1c 100644 --- a/src/arch/arm/regs/misc.cc +++ b/src/arch/arm/regs/misc.cc @@ -3510,7 +3510,8 @@ ISA::initializeMiscRegMetadata() .allPrivileges().exceptUserMode().writes(0) .mapsTo(MISCREG_MIDR); InitReg(MISCREG_MPIDR_EL1) - .allPrivileges().exceptUserMode().writes(0); + .allPrivileges().exceptUserMode().writes(0) + .mapsTo(MISCREG_MPIDR); InitReg(MISCREG_REVIDR_EL1) .faultRead(EL1, HCR_TRAP(tid1)) .allPrivileges().exceptUserMode().writes(0);