summaryrefslogtreecommitdiff
path: root/src/systemc/ext/core/sc_port.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-07 01:23:01 -0700
committerGabe Black <gabeblack@google.com>2018-09-20 01:39:04 +0000
commitc18695fa7d8d1740792a5520742370794c203469 (patch)
tree6d88d9cc275b1dcd20dc0ecc712db5b9d672fc07 /src/systemc/ext/core/sc_port.hh
parente07c2d3c6e2f44dd448d1eceae4967abdf05768c (diff)
downloadgem5-c18695fa7d8d1740792a5520742370794c203469.tar.xz
systemc: Implement sc_gen_unique_name.
The Accellera implementation statically allocates the buffer it uses to build the unique names and only allocates the name generator if it's going to be used for a particular module. I assume that's to avoid allocating a large buffer if it's not going to be used. In this implementation, I use an std::string which manages its own memory and so shouldn't need to be selectively allocated. I also use a string stream to construct the name instead of sprintf. Change-Id: If92c68586a85b5d27c067a75a6e9ebbf00d8c785 Reviewed-on: https://gem5-review.googlesource.com/12066 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/core/sc_port.hh')
0 files changed, 0 insertions, 0 deletions