summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-04 23:49:59 -0700
committerGabe Black <gabeblack@google.com>2018-10-03 00:54:27 +0000
commit1b3ff4d6a8a4ba10a4754ceb316712bab06bc0b2 (patch)
tree3cd710c6b3b277e1a146ff9ee32926b36899d2f2 /src
parentc7c04755491a38174d74b32e213ae48ebc931a10 (diff)
downloadgem5-1b3ff4d6a8a4ba10a4754ceb316712bab06bc0b2.tar.xz
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 <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/systemc/ext/dt/int/sc_int_base.hh4
1 files 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;