Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/12591

Change subject: systemc: Fix a typo/bug in sc_int_base.hh.
......................................................................

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
---
M src/systemc/ext/dt/int/sc_int_base.hh
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 a8f6020..6ea7e20 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 @@
     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;

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12591
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ife795c22aff953c5ab592e7baa3a5e1c15e63c84
Gerrit-Change-Number: 12591
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to