systemc: Construct and manage a module name stack.
Change-Id: I5f7f64d6c3d7e08ec6d2529f3c5d84fbfc2c421b Reviewed-on: https://gem5-review.googlesource.com/10850 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -30,6 +30,13 @@
|
||||
#ifndef __SYSTEMC_EXT_CORE_SC_MODULE_NAME_HH__
|
||||
#define __SYSTEMC_EXT_CORE_SC_MODULE_NAME_HH__
|
||||
|
||||
namespace sc_gem5
|
||||
{
|
||||
|
||||
class Module;
|
||||
|
||||
} // namespace sc_gem5
|
||||
|
||||
namespace sc_core
|
||||
{
|
||||
|
||||
@@ -44,6 +51,7 @@ class sc_module_name
|
||||
|
||||
private:
|
||||
const char *_name;
|
||||
sc_gem5::Module *_gem5_module;
|
||||
bool _on_the_stack;
|
||||
|
||||
// Disabled
|
||||
|
||||
Reference in New Issue
Block a user