inorder: add necessary debug flag header files
authorKorey Sewell <ksewell@umich.edu>
Mon, 20 Jun 2011 01:43:41 +0000 (21:43 -0400)
committerKorey Sewell <ksewell@umich.edu>
Mon, 20 Jun 2011 01:43:41 +0000 (21:43 -0400)
src/cpu/inorder/cpu.cc
src/cpu/inorder/resource.cc
src/cpu/inorder/resources/branch_predictor.cc
src/cpu/inorder/resources/cache_unit.cc
src/cpu/inorder/resources/decode_unit.cc
src/cpu/inorder/resources/execution_unit.cc
src/cpu/inorder/resources/fetch_seq_unit.cc

index 158489f86833b5ac663a30d6b90815c1b8534657..8188ac3541245a89b19e71aa9df89c925eb75be0 100644 (file)
@@ -52,6 +52,7 @@
 #include "debug/InOrderCPU.hh"
 #include "debug/RefCount.hh"
 #include "debug/SkedCache.hh"
+#include "debug/Quiesce.hh"
 #include "mem/translating_port.hh"
 #include "params/InOrderCPU.hh"
 #include "sim/process.hh"
index 9eec63062275d9ea87d9f12c933242dba4be912e..8bc355f5ca5f8073a1c3106b2f9ad0f5e7bbb640 100644 (file)
@@ -36,6 +36,7 @@
 #include "cpu/inorder/cpu.hh"
 #include "cpu/inorder/resource.hh"
 #include "cpu/inorder/resource_pool.hh"
+#include "debug/ExecFaulting.hh"
 #include "debug/RefCount.hh"
 #include "debug/ResReqCount.hh"
 #include "debug/Resource.hh"
index 0dab5a70fce607c67bf3a0d7df3a44e674ffd73f..65b95ff314f4e5894eb1bb6b77956a4a6148ebce 100644 (file)
@@ -33,6 +33,7 @@
 #include "cpu/inorder/resources/branch_predictor.hh"
 #include "debug/InOrderBPred.hh"
 #include "debug/InOrderStage.hh"
+#include "debug/Resource.hh"
 
 using namespace std;
 using namespace TheISA;
index 39afd296e507e85b1807b65cb8ac4c4e18a8020c..94f2d046138f8a7c00db6971eb844b6329036910 100644 (file)
@@ -98,7 +98,7 @@ CacheUnit::CachePort::recvStatusChange(Status status)
 bool
 CacheUnit::CachePort::recvTiming(Packet *pkt)
 {
-    DPRINTF(Cache, "RecvTiming: Pkt %x,\n", pkt->getAddr());
+    DPRINTF(InOrderCachePort, "RecvTiming: Pkt %x,\n", pkt->getAddr());
 
     if (pkt->isError())
         DPRINTF(InOrderCachePort, "Got error packet back for address: %x\n",
@@ -1218,7 +1218,7 @@ CacheUnitEvent::process()
 
     //@todo: eventually, we should do a timing translation w/
     //       hw page table walk on tlb miss
-    DPRINTF(Fault, "Handling Fault %s : [sn:%i] %x\n", inst->fault->name(), inst->seqNum, inst->getMemAddr());
+    DPRINTF(InOrderTLB, "Handling Fault %s : [sn:%i] %x\n", inst->fault->name(), inst->seqNum, inst->getMemAddr());
     inst->fault->invoke(tlb_res->cpu->tcBase(tid), inst->staticInst);
 
     tlb_res->tlbBlocked[tid] = false;
index a3548edfc6af89c039dfd6679a3fa3e9f3721c9d..d0cf7ffb2701c8f37f4a9902aa93d5fe51563e8b 100644 (file)
@@ -62,12 +62,12 @@ DecodeUnit::execute(int slot_num)
 
             if (inst->fault != NoFault) {
                 inst->setBackSked(cpu->faultSked);
-                DPRINTF(Decode,"[tid:%i]: Fault found for instruction [sn:%i]\n",
+                DPRINTF(InOrderDecode,"[tid:%i]: Fault found for instruction [sn:%i]\n",
                         inst->readTid(), inst->seqNum);
             } else {
                 assert(!inst->staticInst->isMacroop());
                 inst->setBackSked(cpu->createBackEndSked(inst));
-                DPRINTF(Decode,"Decoded instruction [sn:%i]: %s : 0x%x\n",
+                DPRINTF(InOrderDecode,"Decoded instruction [sn:%i]: %s : 0x%x\n",
                         inst->seqNum, inst->instName(),
                         inst->staticInst->machInst);
             }
index 25575695639fb4a90f6a1f39b35ae3ecf1483864..a0a486269f5868e0f89ac2bc83a42d0938ca88e1 100644 (file)
@@ -35,6 +35,7 @@
 #include "cpu/inorder/resources/execution_unit.hh"
 #include "cpu/inorder/cpu.hh"
 #include "cpu/inorder/resource_pool.hh"
+#include "debug/Fault.hh"
 #include "debug/InOrderExecute.hh"
 #include "debug/InOrderStall.hh"
 
index 71507e2d813fbbf95f17512dceb486d91a4af516..6bab9ea509ab5598e034f43443b18b41a3e3ff06 100644 (file)
@@ -209,13 +209,10 @@ FetchSeqUnit::squash(DynInstPtr inst, int squash_stage,
                     }
 
                     if (bdelay_inst) {
-                        DPRINTF(Resource, "Evaluating %s v. %s\n",
-                                bdelay_inst->pc, nextPC);
-
                         if (bdelay_inst->pc.instAddr() == nextPC.instAddr()) {
                             bdelay_inst->pc = nextPC;
                             advancePC(nextPC, inst->staticInst);
-                            DPRINTF(Resource, "Advanced PC to %s\n", nextPC);
+                            DPRINTF(InOrderFetchSeq, "Advanced PC to %s\n", nextPC);
                         }
                     }
                 } else {