diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2003-10-28 09:09:45 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2003-10-28 09:09:45 -0800 |
commit | 18205206972932a236d0bf4f427918b57f9857f0 (patch) | |
tree | 275ec2898ae04aa891015637075092e671b7b793 /arch/alpha/ev5.cc | |
parent | cec7f73abf841a65bdce38d6eb67a643e4879335 (diff) | |
download | gem5-18205206972932a236d0bf4f427918b57f9857f0.tar.xz |
Clean up a few spots where we weren't handling of misspeculation correctly.
arch/alpha/ev5.cc:
Don't call kernelStats.hwrei() or system->breakpoint() on misspeculated paths.
arch/alpha/isa_desc:
Don't write reegs.intrflag, do Annotate::Callpal, or call xc->syscall
on misspeculated paths.
--HG--
extra : convert_revision : e73b96fbe4ac5be85fb20aa218fd05fd56d5b2f3
Diffstat (limited to 'arch/alpha/ev5.cc')
-rw-r--r-- | arch/alpha/ev5.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/alpha/ev5.cc b/arch/alpha/ev5.cc index ff1ecc4bf..826a1ab02 100644 --- a/arch/alpha/ev5.cc +++ b/arch/alpha/ev5.cc @@ -168,11 +168,11 @@ ExecContext::hwrei() if (!PC_PAL(regs.pc)) return Unimplemented_Opcode_Fault; - kernelStats.hwrei(); - - regs.npc = ipr[AlphaISA::IPR_EXC_ADDR]; + setNextPC(ipr[AlphaISA::IPR_EXC_ADDR]); if (!misspeculating()) { + kernelStats.hwrei(); + if ((ipr[AlphaISA::IPR_EXC_ADDR] & 1) == 0) AlphaISA::swap_palshadow(®s, false); @@ -560,7 +560,7 @@ ExecContext::simPalCheck(int palFunc) case PAL::bpt: case PAL::bugchk: - if (system->breakpoint()) + if (!misspeculating() && system->breakpoint()) return false; break; } |