Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/11178
Change subject: systemc: Include boost/bind.hpp in the systemc header.
......................................................................
systemc: Include boost/bind.hpp in the systemc header.
The systemc spec says that sc_bind, sc_ref and sc_cref macros should
expand to boost::bind, boost::ref, and boost::cref respectively, but
that it's "use is not mandantory". Unfortunately, the regression tests
use those macros without actually including the boost headers for
themselves, and so they won't compile without dragging in these boost
headers as a dependency.
This should be mostly ok to include here since gem5 itself shouldn't
include systemc, just the sub headers that systemc brings in. systemc
code which includes systemc *will* have a dependency on boost, but that
at least contains the new dependency somewhat.
Change-Id: I1877a1b7dae2952f30a9d577d778739abbe7ac3b
---
M src/systemc/ext/systemc
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/systemc/ext/systemc b/src/systemc/ext/systemc
index 1224a7e..e248550 100644
--- a/src/systemc/ext/systemc
+++ b/src/systemc/ext/systemc
@@ -30,6 +30,12 @@
#ifndef __SYSTEMC_EXT_SYSTEMC__
#define __SYSTEMC_EXT_SYSTEMC__
+// This include isn't supposed to be necessary, but some regression tests
+// assume that the sc_bind macro will work without explicitly including the
+// boost headers. This is in contradiction to the spec which says boost
isn't
+// a required dependency.
+#include <boost/bind.hpp>
+
#include "channel/_channel.hh"
#include "core/_core.hh"
#include "dt/_dt.hh"
--
To view, visit https://gem5-review.googlesource.com/11178
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: I1877a1b7dae2952f30a9d577d778739abbe7ac3b
Gerrit-Change-Number: 11178
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev