From 51f19f2e28a30054d4a9cc06b059b602e17e504f Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Thu, 28 Sep 2006 00:09:27 -0400 Subject: Minor changes plus updates to O3. cpu/base.cc: Have output message regardless of build. cpu/checker/cpu_builder.cc: cpu/checker/o3_cpu_builder.cc: Be sure to include all parameters. cpu/o3/cpu.cc: IEW also needs to switch out. cpu/o3/iew_impl.hh: Handle stores with faults properly. cpu/o3/inst_queue_impl.hh: Switch out properly, handle squashing properly. cpu/o3/lsq_unit_impl.hh: Minor fixes. cpu/o3/mem_dep_unit_impl.hh: Make sure mem dep unit is switched out properly. cpu/o3/rename_impl.hh: Switch out fix. --HG-- extra : convert_revision : b94deb83f724225c01166c84a1b3fdd3543cbe9a --- cpu/base.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cpu/base.cc') diff --git a/cpu/base.cc b/cpu/base.cc index 044fafca9..d4ba8c812 100644 --- a/cpu/base.cc +++ b/cpu/base.cc @@ -60,15 +60,19 @@ int maxThreadsPerCPU = 1; void CPUProgressEvent::process() { -#ifndef NDEBUG Counter temp = cpu->totalInstructions(); +#ifndef NDEBUG double ipc = double(temp - lastNumInst) / (interval / cpu->cycles(1)); + DPRINTFN("%s progress event, instructions committed: %lli, IPC: %0.8d\n", cpu->name(), temp - lastNumInst, ipc); ipc = 0.0; +#else + cprintf("%lli: %s progress event, instructions committed: %lli\n", + curTick, cpu->name(), temp - lastNumInst); +#endif lastNumInst = temp; schedule(curTick + interval); -#endif } const char * -- cgit v1.2.3