cpu: MinorCPU not updating cycle counter value
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 26 Nov 2020 10:42:16 +0000 (10:42 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 8 Dec 2020 09:49:29 +0000 (09:49 +0000)
commitb72246d0ef1bf4e52e4e362e633f026382eebedb
tree8e4b7181e52047f3cbd629e0442802f0e3dc8e6b
parent6d6e3ab5420ea42a284ed1c89fc34eb1cfbf796d
cpu: MinorCPU not updating cycle counter value

By not updating the cycle counter value for every tick in the
MinorCPU meant that a read to the associated performance counter
was always returning 0.

For more info check the following email thread in gem5-users:

https://www.mail-archive.com/gem5-users@gem5.org/msg18742.html

Change-Id: Ibc033b536669cbb43d40c8a7c0659eb5565bdf93
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38095
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
src/cpu/minor/cpu.hh
src/cpu/minor/pipeline.cc