arm,kvm: missed rename of MISCREG_HYP in kvm/armv8_cpu.cc
authormupton <michaelupton@gmail.com>
Tue, 8 Dec 2020 00:42:36 +0000 (16:42 -0800)
committermike upton <michaelupton@gmail.com>
Fri, 11 Dec 2020 04:36:52 +0000 (04:36 +0000)
A recent checkin changed the names of some of the MISCREGs.
One of them was missed and wont compile. This fixes to the new name.

Change-Id: I746f9dea44bc50819a0d30f62dcc3a46380f80c2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38358
Reviewed-by: Nathanael Premillieu <nathanael.premillieu@huawei.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/kvm/armv8_cpu.cc

index 97790940d3c102bb8a3da1a966e9e2cfe16f54e3..54fa8b2cd69481202effa0b8dfe9de7bd7fe1780 100644 (file)
@@ -381,7 +381,7 @@ ArmV8KvmCPU::getSysRegMap() const
         const bool writeable(
             info[MISCREG_USR_NS_WR] || info[MISCREG_USR_S_WR] ||
             info[MISCREG_PRI_S_WR] || info[MISCREG_PRI_NS_WR] ||
-            info[MISCREG_HYP_WR] ||
+            info[MISCREG_HYP_NS_WR] ||
             info[MISCREG_MON_NS0_WR] || info[MISCREG_MON_NS1_WR]);
         const bool implemented(
             info[MISCREG_IMPLEMENTED] || info[MISCREG_WARN_NOT_FAIL]);