Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/12042
Change subject: systemc: Add a sensitivity type for exports.
......................................................................
systemc: Add a sensitivity type for exports.
Dynamic processes can be sensitive to exports, so we need a pending
sensitivity to represent them.
Change-Id: I87952f8bbb7847ad1f1d98d35cd5dd488e7b28ab
---
M src/systemc/core/process.hh
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/systemc/core/process.hh b/src/systemc/core/process.hh
index afdbb37..3b1fb4e 100644
--- a/src/systemc/core/process.hh
+++ b/src/systemc/core/process.hh
@@ -39,6 +39,7 @@
#include "systemc/core/list.hh"
#include "systemc/core/object.hh"
#include "systemc/ext/core/sc_event.hh"
+#include "systemc/ext/core/sc_export.hh"
#include "systemc/ext/core/sc_interface.hh"
#include "systemc/ext/core/sc_module.hh"
#include "systemc/ext/core/sc_port.hh"
@@ -224,6 +225,24 @@
}
};
+class PendingSensitivityExport : public PendingSensitivity
+{
+ private:
+ const sc_core::sc_export_base *exp;
+
+ public:
+ PendingSensitivityExport(Process *p, const sc_core::sc_export_base
*exp) :
+ PendingSensitivity(p), exp(exp)
+ {}
+
+ void
+ finalize(Sensitivities &s) override
+ {
+ s.push_back(new SensitivityEvent(process,
+ &exp->get_interface()->default_event()));
+ }
+};
+
class PendingSensitivityFinder : public PendingSensitivity
{
private:
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12042
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: I87952f8bbb7847ad1f1d98d35cd5dd488e7b28ab
Gerrit-Change-Number: 12042
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