summaryrefslogtreecommitdiff
path: root/src/systemc/core/process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc/core/process.cc')
-rw-r--r--src/systemc/core/process.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/systemc/core/process.cc b/src/systemc/core/process.cc
index 39ee9e051..6a0e7d5a3 100644
--- a/src/systemc/core/process.cc
+++ b/src/systemc/core/process.cc
@@ -333,6 +333,19 @@ Process::ready()
scheduler.ready(this);
}
+void
+Process::lastReport(::sc_core::sc_report *report)
+{
+ if (report) {
+ _lastReport = std::unique_ptr<::sc_core::sc_report>(
+ new ::sc_core::sc_report(*report));
+ } else {
+ _lastReport = nullptr;
+ }
+}
+
+::sc_core::sc_report *Process::lastReport() const { return _lastReport.get(); }
+
Process::Process(const char *name, ProcessFuncWrapper *func,
bool _dynamic, bool needs_start) :
::sc_core::sc_object(name), excWrapper(nullptr), func(func),