X86: Get rid of the unused getAllocator on the python base microop class.
[gem5.git] / src / arch / alpha / ev5.cc
index b3ef8f5d889bab10567b5b0e3e1ed2e51abc96c1..609b45957f8339d768694b6661bf5c4a218bef70 100644 (file)
 #include "arch/alpha/kernel_stats.hh"
 #include "arch/alpha/osfpal.hh"
 #include "arch/alpha/tlb.hh"
-#include "arch/alpha/kgdb.h"
+#include "base/cp_annotate.hh"
 #include "base/debug.hh"
-#include "base/remote_gdb.hh"
-#include "base/stats/events.hh"
 #include "config/full_system.hh"
 #include "cpu/base.hh"
 #include "cpu/simple_thread.hh"
@@ -126,18 +124,6 @@ zeroRegisters(CPU *cpu)
     cpu->thread->setFloatReg(ZeroReg, 0.0);
 }
 
-int
-MiscRegFile::getInstAsid()
-{
-    return ITB_ASN_ASN(ipr[IPR_ITB_ASN]);
-}
-
-int
-MiscRegFile::getDataAsid()
-{
-    return DTB_ASN_ASN(ipr[IPR_DTB_ASN]);
-}
-
 #endif
 
 ////////////////////////////////////////////////////////////////////////
@@ -157,7 +143,7 @@ initIPRs(ThreadContext *tc, int cpuId)
 }
 
 MiscReg
-MiscRegFile::readIpr(int idx, ThreadContext *tc)
+ISA::readIpr(int idx, ThreadContext *tc)
 {
     uint64_t retval = 0;        // return value, default 0
 
@@ -269,7 +255,7 @@ int break_ipl = -1;
 #endif
 
 void
-MiscRegFile::setIpr(int idx, uint64_t val, ThreadContext *tc)
+ISA::setIpr(int idx, uint64_t val, ThreadContext *tc)
 {
     uint64_t old;
 
@@ -350,7 +336,7 @@ MiscRegFile::setIpr(int idx, uint64_t val, ThreadContext *tc)
 
       case IPR_IPLR:
 #ifdef DEBUG
-        if (break_ipl != -1 && break_ipl == (val & 0x1f))
+        if (break_ipl != -1 && break_ipl == (int)(val & 0x1f))
             debug_break();
 #endif
 
@@ -560,6 +546,8 @@ SimpleThread::hwrei()
 
     setNextPC(readMiscRegNoEffect(IPR_EXC_ADDR));
 
+    CPA::cpa()->swAutoBegin(tc, readNextPC());
+
     if (!misspeculating()) {
         if (kernelStats)
             kernelStats->hwrei();