Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/13397
Change subject: systemc: Implement Object::simcontext().
......................................................................
systemc: Implement Object::simcontext().
Implement it as a nonstandard alias for the also non-standard
sc_get_curr_simcontext.
Change-Id: Ic9a51efa93f687e4b57d622247a5510136fab221
---
M src/systemc/core/object.cc
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/systemc/core/object.cc b/src/systemc/core/object.cc
index 55ea7e6..e67aa16 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 @@
sc_core::sc_simcontext *
Object::simcontext() const
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
- return nullptr;
+ return sc_core::sc_get_curr_simcontext();
}
EventsIt
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13397
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ic9a51efa93f687e4b57d622247a5510136fab221
Gerrit-Change-Number: 13397
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev