arch-arm: Read VMPIDR instead of MPIDR when EL2 is Enabled
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 18 Dec 2018 14:20:44 +0000 (14:20 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 16 Jan 2019 11:20:26 +0000 (11:20 +0000)
commitcba75858ab94b525c2daad973b8197e9ebd1f1af
treee0cf1bcc94ce66e264afb127e9ad8f58a7a3467f
parent671840615bb721b9545789555e796f5d47a15bf6
arch-arm: Read VMPIDR instead of MPIDR when EL2 is Enabled

Trying to read MPIDR(_EL1) from EL1, should return the value of
VMPIDR_EL2 if EL2 is enabled. This patch is modifying the utility
function for reading MPIDR in order to match this behaviour for both
AArch32 and AArch64.

Change-Id: I32c2d4d5052f509e6e0542a5314844164221c6a3
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15617
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/isa.cc
src/arch/arm/utility.cc
src/arch/arm/utility.hh