From: Nikos Nikoleris Date: Thu, 28 Feb 2019 17:55:41 +0000 (+0000) Subject: cpu: Correctly account for executed instructions in simple cpus X-Git-Tag: v19.0.0.0~983 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0f87650e105395b6fa281c19b47eb705129372c;p=gem5.git cpu: Correctly account for executed instructions in simple cpus Change-Id: I53f34b2d9db6e4d2e03dde42a970764bb2a5e701 Signed-off-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17730 Reviewed-by: Anthony Gutierrez Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- 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