sim: Fix the Ticked class constructor's event wrapper.
authorGabe Black <gabeblack@google.com>
Mon, 25 May 2020 11:27:53 +0000 (04:27 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 25 May 2020 21:21:33 +0000 (21:21 +0000)
commitce8a6a0cec21f4df4b7d6c05bf3549d7bbb5818d
treea5f9e93e9daf9c4095ddcedd84c0b9581f140f98
parent997b74166baf1ac7a43b758f81b4d5e442a04428
sim: Fix the Ticked class constructor's event wrapper.

This uses a "name()" method which is not defined by the Ticked class,
and isn't a global method. This was probably originally supposed to be
the name() method of the Serializable class that Ticked inherits from,
but a while ago that was removed. It's not clear how this has been
compiling.

Instead, use the name() method of the ClockedObject which is the first
constructor argument.

Change-Id: Icfb71732c58ea9984ef7343bbaa46097a25abf28
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29406
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/ticked_object.cc