Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/11279

Change subject: systemc: Add the nonstandard timed_out function.
......................................................................

systemc: Add the nonstandard timed_out function.

Change-Id: If14a5f98f03448c712827b7f92d2a36992541518
---
M src/systemc/core/sc_module.cc
M src/systemc/core/sc_prim.cc
M src/systemc/ext/core/sc_module.hh
M src/systemc/ext/core/sc_prim.hh
4 files changed, 31 insertions(+), 0 deletions(-)



diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc
index b4fd292..0954ce9 100644
--- a/src/systemc/core/sc_module.cc
+++ b/src/systemc/core/sc_module.cc
@@ -301,6 +301,14 @@
 }


+bool
+sc_module::timed_out()
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+    return false;
+}
+
+
 void
 sc_module::wait()
 {
@@ -483,6 +491,13 @@
     warn("%s not implemented.\n", __PRETTY_FUNCTION__);
 }

+bool
+timed_out()
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+    return false;
+}
+

 void
 wait()
diff --git a/src/systemc/core/sc_prim.cc b/src/systemc/core/sc_prim.cc
index 0daf317..4b5cf17 100644
--- a/src/systemc/core/sc_prim.cc
+++ b/src/systemc/core/sc_prim.cc
@@ -134,6 +134,13 @@
     warn("%s not implemented.\n", __PRETTY_FUNCTION__);
 }

+bool
+sc_prim_channel::timed_out()
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+    return false;
+}
+
 void
 sc_prim_channel::wait()
 {
diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh
index ffb1a3c..7891961 100644
--- a/src/systemc/ext/core/sc_module.hh
+++ b/src/systemc/ext/core/sc_module.hh
@@ -183,6 +183,9 @@
     void next_trigger(const sc_time &, const sc_event_and_list &);
     void next_trigger(double, sc_time_unit, const sc_event_and_list &);

+    // Nonstandard
+    bool timed_out();
+
     void wait();
     void wait(int);
     void wait(const sc_event &);
@@ -242,6 +245,9 @@
 void wait(const sc_time &, const sc_event_and_list &);
 void wait(double, sc_time_unit, const sc_event_and_list &);

+// Nonstandard
+bool timed_out();
+
 #define SC_MODULE(name) struct name : ::sc_core::sc_module

 #define SC_CTOR(name) \
diff --git a/src/systemc/ext/core/sc_prim.hh b/src/systemc/ext/core/sc_prim.hh
index d6265cb..2348f45 100644
--- a/src/systemc/ext/core/sc_prim.hh
+++ b/src/systemc/ext/core/sc_prim.hh
@@ -67,6 +67,9 @@
     void next_trigger(const sc_time &, const sc_event_and_list &);
     void next_trigger(double, sc_time_unit, const sc_event_and_list &);

+    // Nonstandard.
+    bool timed_out();
+
     void wait();
     void wait(int);
     void wait(const sc_event &);

--
To view, visit https://gem5-review.googlesource.com/11279
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: If14a5f98f03448c712827b7f92d2a36992541518
Gerrit-Change-Number: 11279
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

Reply via email to