diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-09-28 00:09:27 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-09-28 00:09:27 -0400 |
commit | 51f19f2e28a30054d4a9cc06b059b602e17e504f (patch) | |
tree | 8848ad3ba16217e00995d06a1ccdc7000cdd42d8 /cpu/base.cc | |
parent | 65741cd048933214df43982979079fccfffb3fce (diff) | |
download | gem5-51f19f2e28a30054d4a9cc06b059b602e17e504f.tar.xz |
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
Diffstat (limited to 'cpu/base.cc')
-rw-r--r-- | cpu/base.cc | 8 |
1 files changed, 6 insertions, 2 deletions
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 * |