Remove delVirtPort() and make getVirtPort() only return cached version.
[gem5.git] / src / base / condcodes.hh
index 98defdb705029e7c59777ef9f0e996ee1cc9c0ea..986e8d3106730f039de45879cc89321573532478 100644 (file)
@@ -63,7 +63,7 @@ findOverflow(int width, uint64_t dest, uint64_t src1, uint64_t src2) {
 inline
 bool
 findParity(int width, uint64_t dest) {
-    dest &= width;
+    dest &= mask(width);
     dest ^= (dest >> 32);
     dest ^= (dest >> 16);
     dest ^= (dest >> 8);