From 1b3ff4d6a8a4ba10a4754ceb316712bab06bc0b2 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 4 Sep 2018 23:49:59 -0700 Subject: [PATCH] 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 --- src/systemc/ext/dt/int/sc_int_base.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2