From: Gabe Black Date: Wed, 5 Sep 2018 06:49:59 +0000 (-0700) Subject: systemc: Fix a typo/bug in sc_int_base.hh. X-Git-Tag: v19.0.0.0~1660 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b3ff4d6a8a4ba10a4754ceb316712bab06bc0b2;p=gem5.git systemc: Fix a typo/bug in sc_int_base.hh. When being turned into gem5 coding style, a pair of "!" operators were dropped, reversing the behavior of the functions involved. Change-Id: Ife795c22aff953c5ab592e7baa3a5e1c15e63c84 Reviewed-on: https://gem5-review.googlesource.com/c/12591 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/ext/dt/int/sc_int_base.hh b/src/systemc/ext/dt/int/sc_int_base.hh index a8f602028..6ea7e2011 100644 --- a/src/systemc/ext/dt/int/sc_int_base.hh +++ b/src/systemc/ext/dt/int/sc_int_base.hh @@ -341,9 +341,9 @@ class sc_int_subref_r : public sc_value_base bool and_reduce() const; bool nand_reduce() const { return !and_reduce(); } bool or_reduce() const; - bool nor_reduce() const { return or_reduce(); } + bool nor_reduce() const { return !or_reduce(); } bool xor_reduce() const; - bool xnor_reduce() const { return xor_reduce(); } + bool xnor_reduce() const { return !xor_reduce(); } // implicit conversion to uint_type operator uint_type () const;