systemc: Fix the seed used with sc_gen_unique_name for sc_port.
authorGabe Black <gabeblack@google.com>
Tue, 7 Aug 2018 08:26:14 +0000 (01:26 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 20 Sep 2018 01:39:26 +0000 (01:39 +0000)
The seed should only be "port" not "sc_port".

Change-Id: Ia046103abc0a9ed283fcb7cf7d8069383a1e2b0d
Reviewed-on: https://gem5-review.googlesource.com/12067
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/ext/core/sc_port.hh

index 0f5a661891f5eed7ad3252def2a95d7b8bc6e507..fb7b76d2699d4a77195c332125d86802f7870b9a 100644 (file)
@@ -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)