systemc: Use the stage of simulation and not port size in add_trace.
authorGabe Black <gabeblack@google.com>
Mon, 1 Oct 2018 05:40:28 +0000 (22:40 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:40:46 +0000 (00:40 +0000)
commite5a994140a1f0fcd08ba6ddad7d11d6daa3d07a0
tree68a5f2ec0b8831ca1dd63e697cce2ed551999d55
parent163eb3c56b115e649c72fceff89c8370b6e7306f
systemc: Use the stage of simulation and not port size in add_trace.

The assumption was that a port wouldn't have any interfaces until
after elaboration, and that if it would be traced, it would have
interfaces. Checking if the simulation has started (and hence
elaboration has finished) is a more accurate and direct way to check
the same thing.

Change-Id: I7fe9ecea469997d1a257dd3e4a0db31889aff722
Reviewed-on: https://gem5-review.googlesource.com/c/13195
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/ext/channel/sc_in.hh
src/systemc/ext/channel/sc_inout.hh