diff options
author | Gabe Black <gabeblack@google.com> | 2019-04-27 20:51:22 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-04-30 07:37:51 +0000 |
commit | 40cc7cdd53540ded69f055262b087dca54f5b715 (patch) | |
tree | ac7c19e9023295b717e92ec330af9febe39ed78b /src/arch | |
parent | 0eb763c77f7f33694656984fcdac53bf52c3dacb (diff) | |
download | gem5-40cc7cdd53540ded69f055262b087dca54f5b715.tar.xz |
cpu: Remove hwrei from the generic interfaces.
This mechanism is specific to Alpha and doesn't belong sprinkled around
the CPU's generic mechanisms.
Change-Id: I87904d1a08df2b03eb770205e2c4b94db25201a1
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18432
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/alpha/ev5.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/arch/alpha/ev5.cc b/src/arch/alpha/ev5.cc index e3e025e2f..e64523d9c 100644 --- a/src/arch/alpha/ev5.cc +++ b/src/arch/alpha/ev5.cc @@ -485,28 +485,6 @@ copyIprs(ThreadContext *src, ThreadContext *dest) using namespace AlphaISA; -Fault -SimpleThread::hwrei() -{ - auto *stats = dynamic_cast<AlphaISA::Kernel::Statistics *>(kernelStats); - assert(stats || !kernelStats); - - PCState pc = pcState(); - if (!(pc.pc() & 0x3)) - return std::make_shared<UnimplementedOpcodeFault>(); - - pc.npc(readMiscRegNoEffect(IPR_EXC_ADDR)); - pcState(pc); - - CPA::cpa()->swAutoBegin(this, pc.npc()); - - if (stats) - stats->hwrei(); - - // FIXME: XXX check for interrupts? XXX - return NoFault; -} - /** * Check for special simulator handling of specific PAL calls. * If return value is false, actual PAL call will be suppressed. |