systemc: Eliminate ClockTick duplicated name warning
In systemc, a module name is consist of hierarchy names with dot separated. The basename is the last part of the module name. Because lack of hierarchy information, it's a chance that the basename is duplicated. Although, ClockTick is using sc_gen_unique_name to solve this, the warning from sc_gen_unique_name is annoying. To solve this completely, we should use the full module name to construct the name of ClockTick. Change-Id: Ie664fe4757a05f72860be49c3a9d1172f824eb2e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/44425 Reviewed-by: Gabe Black <gabe.black@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45821
This commit is contained in:
committed by
Bobby R. Bruce
parent
5b07a0787b
commit
53da68d661
@@ -54,7 +54,7 @@ class ClockTick : public ScEvent
|
||||
ClockTick(::sc_core::sc_clock *clock, bool to,
|
||||
::sc_core::sc_time _period) :
|
||||
ScEvent([this]() { tick(); }),
|
||||
_period(_period), name(clock->basename()), p(nullptr),
|
||||
_period(_period), name(clock->name()), p(nullptr),
|
||||
funcWrapper(clock, to ? &::sc_core::sc_clock::tickUp :
|
||||
&::sc_core::sc_clock::tickDown)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user