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

Change subject: systemc: Add a namespace to the SC_MODULE's sc_module.
......................................................................

systemc: Add a namespace to the SC_MODULE's sc_module.

Ensure that when expanded, SC_MODULE will work regardless of the
containing namespace.

Change-Id: I608dbd6c36dca8c838feb0a239c3c053d5346599
---
M src/systemc/ext/core/sc_module.hh
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh
index 5b1b143..3b270c2 100644
--- a/src/systemc/ext/core/sc_module.hh
+++ b/src/systemc/ext/core/sc_module.hh
@@ -218,7 +218,7 @@
 void wait(const sc_time &, const sc_event_and_list &);
 void wait(double, sc_time_unit, const sc_event_and_list &);

-#define SC_MODULE(name) struct name : sc_module
+#define SC_MODULE(name) struct name : ::sc_core:sc_module
 #define SC_CTOR(name) /* Implementation defined */; name(sc_module_name)
 #define SC_HAS_PROCESS(name) /* Implementation defined */
 #define SC_METHOD(name) /* Implementation defined */

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