From 40cc7cdd53540ded69f055262b087dca54f5b715 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 27 Apr 2019 20:51:22 -0700 Subject: 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 Maintainer: Gabe Black Tested-by: kokoro --- src/arch/alpha/ev5.cc | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/arch') 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(kernelStats); - assert(stats || !kernelStats); - - PCState pc = pcState(); - if (!(pc.pc() & 0x3)) - return std::make_shared(); - - 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. -- cgit v1.2.3