systemc: Add the nonstandard macro SC_NEW.
authorGabe Black <gabeblack@google.com>
Fri, 15 Jun 2018 21:56:10 +0000 (14:56 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 22 Aug 2018 00:52:39 +0000 (00:52 +0000)
commit5d24b0a5adafa4ae09b29ec0e2cbc1a2ecd4126f
tree89986e2778f513b71693baace0a36297416b4ddf
parentd4f96ad97175e1c8cb598cdc6bd25171b1753912
systemc: Add the nonstandard macro SC_NEW.

This is in the Accellera implementation and in the regression tests.
The implementation here is a bit different than theirs in that it uses
std::unique_ptrs.

Change-Id: Id3d1ad82482b94a5d99f27e02d1e447ca1944797
Reviewed-on: https://gem5-review.googlesource.com/11255
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/sc_module.cc
src/systemc/ext/core/sc_module.hh