sim: Fix clashing stat names in TickedObject and Ticked
authorJose Marinho <jose.marinho@arm.com>
Tue, 13 Jun 2017 14:21:22 +0000 (15:21 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 10 Jul 2017 08:29:25 +0000 (08:29 +0000)
commitff87b8ad52145045bc3f4d1082204d962d7c3dd5
treefe7cf890825cfb21ed0792363ec89e769907ac0b
parent81db5ccf3c41e28966ce547e3fd783634581a077
sim: Fix clashing stat names in TickedObject and Ticked

Change tickCycles numCycles stat name to totalTickCycles os as not to
clash with the name of the tickCycles stat of the same class.
Declared the params passed to the TickedObject constructer as const.
Call ClockedObject::regStats() from the TickedObject::regStats to
ensure the correct initialization of the base class (ClockedObject)
stats

Change-Id: I6cf5bbe10fa27f2ad0e31d9f70ec3be47fe41455
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3964
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/sim/ticked_object.cc
src/sim/ticked_object.hh