cpu, cpu, sim: move Cycle probe update
authorJose Marinho <jose.marinho@arm.com>
Thu, 20 Jul 2017 13:57:39 +0000 (14:57 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 21 Nov 2017 17:09:18 +0000 (17:09 +0000)
commit760cc5735f48f3a5a52ebe31df0c039b23c3d611
treeda4103b240221359838888467ac4f12544acc2c5
parent00232a868e4816d19c129fb3d6ef5519d7176d5a
cpu, cpu, sim: move Cycle probe update

Move the code responsible for performing the actual probe point notify
into BaseCPU. Use BaseCPU activateContext and suspendContext to keep
track of sleep cycles. Create a probe point (ppActiveCycles) that does
not count cycles where the processor was asleep. Rename ppCycles
to ppAllCycles to reflect its nature.

Change-Id: I1907ddd07d0ff9f2ef22cc9f61f5f46c630c9d66
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5762
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/cpu/base.cc
src/cpu/base.hh
src/cpu/kvm/base.cc
src/cpu/minor/pipeline.hh
src/cpu/o3/cpu.cc
src/cpu/simple/atomic.cc
src/cpu/simple/base.cc
src/cpu/simple/timing.cc