arch-arm: Fix secure MiscReg access when EL3 is not AArch32
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 27 Mar 2018 15:31:56 +0000 (16:31 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 17 Apr 2018 12:49:56 +0000 (12:49 +0000)
commitc014f4f82eaa89d2bdb3f3c73613b1b49b4a4eec
tree00788182a19d6d42f8518ca0d4ebaeccb1b47a7e
parent2c0ce271a604be0000b2f1cc1084541714e436ac
arch-arm: Fix secure MiscReg access when EL3 is not AArch32

When EL3 is not implemented or it is running on AArch64, Secure banking
does not apply and there is only one flatten register version.  In this
scenario gem5 is using the _NS (Non-secure) version as a default backing
storage location: secure mode software must be able to access the
non-secure register.

Change-Id: I5086e6228a5cba4d18c632543a2bcf80ffb069a8
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/9941
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/miscregs.cc