From 8b7724d04c8bd337c096ac4364beceac6a64cde2 Mon Sep 17 00:00:00 2001 From: Akash Bagdia Date: Tue, 2 Sep 2014 11:26:32 +0100 Subject: [PATCH] arm: Don't speculatively access most miscregisters. Speculative exeuction can cause panics in detailed execution mode that shouldn't happen. --- src/arch/arm/isa/insts/misc.isa | 2 +- src/arch/arm/miscregs.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/arm/isa/insts/misc.isa b/src/arch/arm/isa/insts/misc.isa index 5403ddc8d..6ecaa78de 100644 --- a/src/arch/arm/isa/insts/misc.isa +++ b/src/arch/arm/isa/insts/misc.isa @@ -219,7 +219,7 @@ let {{ msrBankedRegIop = InstObjParams("msr", "MsrBankedReg", "MsrRegOp", { "code": msrBankedRegCode, "predicate_test": predicateTest }, - ["IsSerializeAfter"]) + ["IsSerializeAfter", "IsNonSpeculative"]) header_output += MsrBankedRegDeclare.subst(msrBankedRegIop) decoder_output += MsrBankedRegConstructor.subst(msrBankedRegIop) exec_output += PredOpExecute.subst(msrBankedRegIop) diff --git a/src/arch/arm/miscregs.cc b/src/arch/arm/miscregs.cc index d682dc454..c54e7d07b 100644 --- a/src/arch/arm/miscregs.cc +++ b/src/arch/arm/miscregs.cc @@ -758,7 +758,7 @@ bitset miscRegInfo[NUM_MISCREGS] = { // MISCREG_CNTP_CVAL bitset(string("0000000000000001001")), // MISCREG_CNTP_CVAL_NS - bitset(string("1100110011111110000")), + bitset(string("1100110011111110001")), // MISCREG_CNTP_CVAL_S bitset(string("0011001100111110000")), // MISCREG_CNTV_CVAL -- 2.30.2