From: Gabe Black Date: Mon, 25 May 2020 11:27:53 +0000 (-0700) Subject: sim: Fix the Ticked class constructor's event wrapper. X-Git-Tag: v20.1.0.0~627 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce8a6a0cec21f4df4b7d6c05bf3549d7bbb5818d;p=gem5.git 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 Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/sim/ticked_object.cc b/src/sim/ticked_object.cc index c6d1f9817..7af439cd5 100644 --- a/src/sim/ticked_object.cc +++ b/src/sim/ticked_object.cc @@ -44,7 +44,7 @@ Ticked::Ticked(ClockedObject &object_, Stats::Scalar *imported_num_cycles, Event::Priority priority) : object(object_), - event([this]{ processClockEvent(); }, name(), false, priority), + event([this]{ processClockEvent(); }, object_.name(), false, priority), running(false), lastStopped(0), /* Allocate numCycles if an external stat wasn't passed in */