remove the annotation junk
authorNathan Binkert <binkertn@umich.edu>
Thu, 13 May 2004 12:03:36 +0000 (08:03 -0400)
committerNathan Binkert <binkertn@umich.edu>
Thu, 13 May 2004 12:03:36 +0000 (08:03 -0400)
arch/alpha/isa_desc:
    remove the annotation junk
    Move some code to AlphaPseudo where it belongs
arch/alpha/pseudo_inst.cc:
arch/alpha/pseudo_inst.hh:
    remove the annotation junk
    add pseudo instruction code that was previously misplaced

--HG--
extra : convert_revision : 97db8402aa34e0bdf044b138c52331fc9e714986

arch/alpha/ev5.cc
arch/alpha/isa_desc
arch/alpha/pseudo_inst.cc
arch/alpha/pseudo_inst.hh
cpu/simple_cpu/simple_cpu.cc

index 468acdc55fa79d0468ff7171bd28d63b3514c425..f037a34ac5e4a82c774888f0663a1a718e39204c 100644 (file)
@@ -1,7 +1,6 @@
 /* $Id$ */
 
 #include "targetarch/alpha_memory.hh"
-#include "sim/annotation.hh"
 #ifdef DEBUG
 #include "sim/debug.hh"
 #endif
@@ -126,8 +125,6 @@ ExecContext::ev5_trap(Fault fault)
 
     regs.pc = ipr[AlphaISA::IPR_PAL_BASE] + AlphaISA::fault_addr[fault];
     regs.npc = regs.pc + sizeof(MachInst);
-
-    Annotate::Ev5Trap(this, fault);
 }
 
 
@@ -359,7 +356,6 @@ ExecContext::setIpr(int idx, uint64_t val)
         old = ipr[idx];
         ipr[idx] = val;
         kernelStats.context(old, val);
-        Annotate::Context(this);
         break;
 
       case AlphaISA::IPR_DTB_PTE:
@@ -387,11 +383,9 @@ ExecContext::setIpr(int idx, uint64_t val)
         // only write least significant five bits - interrupt level
         ipr[idx] = val & 0x1f;
         kernelStats.swpipl(ipr[idx]);
-        Annotate::IPL(this, val & 0x1f);
         break;
 
       case AlphaISA::IPR_DTB_CM:
-        Annotate::ChangeMode(this, (val & 0x18) != 0);
         kernelStats.mode((val & 0x18) != 0);
 
       case AlphaISA::IPR_ICM:
index 0d1e7138f7265b5f38a75482a6740953cd045d4d..9bbdac9b45e6706fb607d8f3a6f13f3b03893326 100644 (file)
@@ -25,7 +25,6 @@ let {{
 #include "cpu/full_cpu/dyn_inst.hh"
 #include "cpu/simple_cpu/simple_cpu.hh"
 #include "cpu/static_inst.hh"
-#include "sim/annotation.hh"
 #include "sim/sim_exit.hh"
 
 #ifdef FULL_SYSTEM
@@ -2297,8 +2296,6 @@ decode OPCODE default Unknown::unknown() {
                // on this PAL call (including maybe suppress it)
                dopal = xc->simPalCheck(palFunc);
 
-               Annotate::Callpal(xc->xcBase(), palFunc);
-
                if (dopal) {
                    AlphaISA::swap_palshadow(&xc->xcBase()->regs, true);
                    xc->setIpr(AlphaISA::IPR_EXC_ADDR, NPC);
@@ -2357,24 +2354,20 @@ decode OPCODE default Unknown::unknown() {
        // M5 special opcodes use the reserved 0x01 opcode space
        0x01: decode M5FUNC {
            0x00: arm({{
-               if (!xc->misspeculating()) {
-                   Annotate::ARM(xc->xcBase());
-                   xc->xcBase()->kernelStats.arm();
-               }
+               if (!xc->misspeculating())
+                   AlphaPseudo::arm(xc->xcBase());
            }});
            0x01: quiesce({{
                if (!xc->misspeculating())
                    AlphaPseudo::quiesce(xc->xcBase());
            }});
            0x10: ivlb({{
-               if (!xc->misspeculating()) {
-                   Annotate::BeginInterval(xc->xcBase());
-                   xc->xcBase()->kernelStats.ivlb();
-               }
+               if (!xc->misspeculating())
+                   AlphaPseudo::ivlb(xc->xcBase());
            }}, No_OpClass);
            0x11: ivle({{
                if (!xc->misspeculating())
-                   Annotate::EndInterval(xc->xcBase());
+                   AlphaPseudo::ivle(xc->xcBase());
            }}, No_OpClass);
            0x20: m5exit_old({{
                if (!xc->misspeculating())
index 194dc640096099269c936ba816b2a9c71b3b7316..0a5c5b0065076ecde1d4c1f750588aa22a1cc2cf 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "arch/alpha/pseudo_inst.hh"
 #include "cpu/exec_context.hh"
-#include "sim/annotation.hh"
 #include "sim/param.hh"
 #include "sim/serialize.hh"
 #include "sim/sim_exit.hh"
@@ -46,17 +45,33 @@ namespace AlphaPseudo
     bool doCheckpointInsts;
     bool doQuiesce;
 
+    void
+    arm(ExecContext *xc)
+    {
+        xc->kernelStats.arm();
+    }
+
     void
     quiesce(ExecContext *xc)
     {
         if (!doQuiesce)
             return;
 
-        Annotate::QUIESCE(xc);
         xc->suspend();
         xc->kernelStats.quiesce();
     }
 
+    void
+    ivlb(ExecContext *xc)
+    {
+        xc->kernelStats.ivlb();
+    }
+
+    void
+    ivle(ExecContext *xc)
+    {
+    }
+
     void
     m5exit_old(ExecContext *xc)
     {
index 85f432504d180765811d74353d1780746e06cc96..e5551a44b868f00ef200d2b71ea20a57df918c99 100644 (file)
@@ -37,7 +37,10 @@ namespace AlphaPseudo
     extern bool doCheckpointInsts;
     extern bool doQuiesce;
 
+    void arm(ExecContext *xc);
     void quiesce(ExecContext *xc);
+    void ivlb(ExecContext *xc);
+    void ivle(ExecContext *xc);
     void m5exit(ExecContext *xc);
     void m5exit_old(ExecContext *xc);
     void resetstats(ExecContext *xc);
index 56ea0ae118ec1ab93cfabf325268c00072ff6f88..617c91e6805c0385027a4abc4a2a96bcb12fd749 100644 (file)
@@ -50,7 +50,6 @@
 #include "cpu/static_inst.hh"
 #include "mem/base_mem.hh"
 #include "mem/mem_interface.hh"
-#include "sim/annotation.hh"
 #include "sim/builder.hh"
 #include "sim/debug.hh"
 #include "sim/host.hh"
@@ -579,7 +578,6 @@ SimpleCPU::post_interrupt(int int_num, int index)
     if (xc->status() == ExecContext::Suspended) {
                 DPRINTF(IPI,"Suspended Processor awoke\n");
         xc->activate();
-        Annotate::Resume(xc);
     }
 }
 #endif // FULL_SYSTEM