summaryrefslogtreecommitdiff
path: root/src/systemc/ext/channel
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-07 14:39:31 -0700
committerGabe Black <gabeblack@google.com>2018-08-15 01:29:56 +0000
commit9a457d97b543c5e1c03cf40b78ca4c53bf902642 (patch)
tree1c031479df2dc088ceee4a938bb59c340e8d1ba5 /src/systemc/ext/channel
parentabeafffd03229ee752b6d772f359308a88e0af04 (diff)
downloadgem5-9a457d97b543c5e1c03cf40b78ca4c53bf902642.tar.xz
systemc: Add a non-standard default writer policy on sc_buffer.
The standard says there's not supposed to be a default writer policy for the sc_buffer template class, but in the Accellera implementation there is, and the regression tests depend on it to compile. Change-Id: I31d17617441224e86c56c54e45364be8f4f45b00 Reviewed-on: https://gem5-review.googlesource.com/10957 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/channel')
-rw-r--r--src/systemc/ext/channel/sc_buffer.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemc/ext/channel/sc_buffer.hh b/src/systemc/ext/channel/sc_buffer.hh
index 153b60b10..22081605e 100644
--- a/src/systemc/ext/channel/sc_buffer.hh
+++ b/src/systemc/ext/channel/sc_buffer.hh
@@ -37,7 +37,9 @@
namespace sc_core
{
-template <class T, sc_writer_policy WRITER_POLICY>
+// Having a default value for the WRITER_POLICY parameter is non-standard, but
+// matches the Accellera implementation to enable the regression tests.
+template <class T, sc_writer_policy WRITER_POLICY=SC_ONE_WRITER>
class sc_buffer : public sc_signal<T, WRITER_POLICY>
{
public: