cpu: fix system total instructions accounting
authorNikos Nikoleris <nikos.nikoleris@gmail.com>
Fri, 3 Apr 2015 16:42:10 +0000 (11:42 -0500)
committerNikos Nikoleris <nikos.nikoleris@gmail.com>
Fri, 3 Apr 2015 16:42:10 +0000 (11:42 -0500)
commit305e29b98ef369bcf5574a0a462f43c0bbc7ba5b
treee2699c1127421c8b8c86b7ebd37706919daa881e
parent333988a73e06cb4067f113b7043ab68dd0e86c9d
cpu: fix system total instructions accounting

The totalInstructions counter is only incremented when the whole instruction is
commited and not on every microop. It was incorrectly reset in atomic and
timing cpus.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>"
src/cpu/minor/execute.cc
src/cpu/o3/cpu.cc
src/cpu/simple/atomic.cc
src/cpu/simple/timing.cc