Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/49618 )

Change subject: systemc: Stop including mem/port.hh from the systemc headers.
......................................................................

systemc: Stop including mem/port.hh from the systemc headers.

The systemc headers are supposed to be hermetic, so that they can be
included from generic systemc code without any dependency on the gem5
code base, at least when the systemc components are compiled, outside
of those header files themselves. It should be possible to copy the
"ext" directory out of the tree and make it available to systemc code,
and that code should be compileable.

Change-Id: Iec16a534ac04c7895cd8a30940b0acf64c257dde
---
M src/systemc/ext/core/sc_module.hh
1 file changed, 5 insertions(+), 2 deletions(-)



diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh
index e92b681..ea3af78 100644
--- a/src/systemc/ext/core/sc_module.hh
+++ b/src/systemc/ext/core/sc_module.hh
@@ -31,7 +31,6 @@
 #include <string>
 #include <vector>

-#include "mem/port.hh"
 #include "sc_object.hh"
 #include "sc_process_handle.hh"
 #include "sc_sensitive.hh"
@@ -58,9 +57,13 @@

 } // namespace sc_gem5

-// Gem5 prototype
+namespace gem5
+{
+
 class Port;

+} // namespace gem5
+
 namespace sc_core
 {


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/49618
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Iec16a534ac04c7895cd8a30940b0acf64c257dde
Gerrit-Change-Number: 49618
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-CC: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to