Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/13336
Change subject: systemc: Don't include the scheduler in an external header
file.
......................................................................
systemc: Don't include the scheduler in an external header file.
The scheduler is an internal detail and shouldn't be exposed to the
headers in ext. It would transitively include more headers which are
not in ext, making it not self contained.
Change-Id: I8384cde9d19363953ffd0c91e7d8d27f8f79a570
---
M src/systemc/ext/channel/sc_signal_rv.hh
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/systemc/ext/channel/sc_signal_rv.hh
b/src/systemc/ext/channel/sc_signal_rv.hh
index 1a47e84..c769f37 100644
--- a/src/systemc/ext/channel/sc_signal_rv.hh
+++ b/src/systemc/ext/channel/sc_signal_rv.hh
@@ -31,11 +31,18 @@
#define __SYSTEMC_EXT_CHANNEL_SC_SIGNAL_RV_HH__
#include "../core/sc_module.hh" // for sc_gen_unique_name
-#include "../core/scheduler.hh"
#include "../dt/bit/sc_logic.hh"
#include "../dt/bit/sc_lv.hh"
#include "sc_signal.hh"
+namespace sc_gem5
+{
+
+class Process;
+Process *getCurrentProcess();
+
+} // namespace sc_gem5
+
namespace sc_dt
{
@@ -66,7 +73,7 @@
virtual void
write(const sc_dt::sc_lv<W> &l)
{
- ::sc_gem5::Process *p = ::sc_gem5::scheduler.current();
+ ::sc_gem5::Process *p = ::sc_gem5::getCurrentProcess();
auto it = inputs.find(p);
if (it == inputs.end()) {
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13336
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: I8384cde9d19363953ffd0c91e7d8d27f8f79a570
Gerrit-Change-Number: 13336
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