summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-10 19:20:49 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 01:18:07 +0000
commit5c21437512235104821701920b59878c3afb8139 (patch)
tree96952b25758393c33a7c6fd34e63f50a68843230 /src/systemc
parent25d308e849bcf4d4301099b952c91fc5e2afa58a (diff)
downloadgem5-5c21437512235104821701920b59878c3afb8139.tar.xz
systemc: Implement Object::simcontext().
Implement it as a nonstandard alias for the also non-standard sc_get_curr_simcontext. Change-Id: Ic9a51efa93f687e4b57d622247a5510136fab221 Reviewed-on: https://gem5-review.googlesource.com/c/13397 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/core/object.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemc/core/object.cc b/src/systemc/core/object.cc
index 55ea7e6d7..e67aa167c 100644
--- a/src/systemc/core/object.cc
+++ b/src/systemc/core/object.cc
@@ -38,6 +38,7 @@
#include "systemc/core/scheduler.hh"
#include "systemc/ext/core/messages.hh"
#include "systemc/ext/core/sc_module.hh"
+#include "systemc/ext/core/sc_simcontext.hh"
namespace sc_gem5
{
@@ -243,8 +244,7 @@ Object::attr_cltn() const
sc_core::sc_simcontext *
Object::simcontext() const
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
- return nullptr;
+ return sc_core::sc_get_curr_simcontext();
}
EventsIt