From 5c21437512235104821701920b59878c3afb8139 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 10 Oct 2018 19:20:49 -0700 Subject: 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 Maintainer: Gabe Black --- src/systemc/core/object.cc | 4 ++-- 1 file 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 -- cgit v1.2.3