diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2019-02-28 17:55:41 +0000 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2019-04-05 21:52:19 +0000 |
commit | d0f87650e105395b6fa281c19b47eb705129372c (patch) | |
tree | 847fed4eafdc654c91a88be926b9073fcaa5b5e0 /src | |
parent | 271f2aea84a280b68c234a57438b94629f254e7f (diff) | |
download | gem5-d0f87650e105395b6fa281c19b47eb705129372c.tar.xz |
cpu: Correctly account for executed instructions in simple cpus
Change-Id: I53f34b2d9db6e4d2e03dde42a970764bb2a5e701
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17730
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/simple/base.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index b243dcca3..49bc1ad73 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -175,12 +175,12 @@ BaseSimpleCPU::countInst() if (!curStaticInst->isMicroop() || curStaticInst->isLastMicroop()) { t_info.numInst++; t_info.numInsts++; + + system->totalNumInsts++; + t_info.thread->funcExeInst++; } t_info.numOp++; t_info.numOps++; - - system->totalNumInsts++; - t_info.thread->funcExeInst++; } Counter |