summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/cpu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/inorder/cpu.cc')
-rw-r--r--src/cpu/inorder/cpu.cc20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc
index 51f763112..c522fc238 100644
--- a/src/cpu/inorder/cpu.cc
+++ b/src/cpu/inorder/cpu.cc
@@ -80,6 +80,22 @@ InOrderCPU::CPUEvent::CPUEvent(InOrderCPU *_cpu, CPUEventType e_type,
setEvent(e_type, fault, _tid, _vpe);
}
+
+std::string InOrderCPU::eventNames[NumCPUEvents] =
+{
+ "ActivateThread",
+ "DeallocateThread",
+ "SuspendThread",
+ "DisableThreads",
+ "EnableThreads",
+ "DisableVPEs",
+ "EnableVPEs",
+ "Trap",
+ "InstGraduated",
+ "SquashAll",
+ "UpdatePCs"
+};
+
void
InOrderCPU::CPUEvent::process()
{
@@ -486,8 +502,8 @@ InOrderCPU::scheduleCpuEvent(CPUEventType c_event, Fault fault,
CPUEvent *cpu_event = new CPUEvent(this, c_event, fault, tid, vpe);
if (delay >= 0) {
- DPRINTF(InOrderCPU, "Scheduling CPU Event Type #%i for cycle %i.\n",
- c_event, curTick + delay);
+ DPRINTF(InOrderCPU, "Scheduling CPU Event Type #%s for cycle %i.\n",
+ eventNames[c_event], curTick + delay);
mainEventQueue.schedule(cpu_event,curTick + delay);
} else {
cpu_event->process();