From: Gabe Black Date: Tue, 7 Aug 2018 08:26:14 +0000 (-0700) Subject: systemc: Fix the seed used with sc_gen_unique_name for sc_port. X-Git-Tag: v19.0.0.0~1783 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a0d4c644261cff371e05efa7e5a56efab4f82c8;p=gem5.git systemc: Fix the seed used with sc_gen_unique_name for sc_port. The seed should only be "port" not "sc_port". Change-Id: Ia046103abc0a9ed283fcb7cf7d8069383a1e2b0d Reviewed-on: https://gem5-review.googlesource.com/12067 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh index 0f5a66189..fb7b76d26 100644 --- a/src/systemc/ext/core/sc_port.hh +++ b/src/systemc/ext/core/sc_port.hh @@ -165,7 +165,7 @@ class sc_port_b : public sc_port_base virtual void end_of_simulation() {} explicit sc_port_b(int n, sc_port_policy p) : - sc_port_base(sc_gen_unique_name("sc_port"), n, p) + sc_port_base(sc_gen_unique_name("port"), n, p) {} sc_port_b(const char *name, int n, sc_port_policy p) : sc_port_base(name, n, p)