From: Gabe Black Date: Thu, 7 Jun 2018 21:39:31 +0000 (-0700) Subject: systemc: Add a non-standard default writer policy on sc_buffer. X-Git-Tag: v19.0.0.0~1952 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a457d97b543c5e1c03cf40b78ca4c53bf902642;p=gem5.git 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 Maintainer: Gabe Black --- 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 +// Having a default value for the WRITER_POLICY parameter is non-standard, but +// matches the Accellera implementation to enable the regression tests. +template class sc_buffer : public sc_signal { public: