From 58c448ced510835631527fa64a0ebd0b497b525b Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 25 Sep 2007 20:26:10 -0700 Subject: [PATCH] Condition Codes: Fix the findParity function. --HG-- extra : convert_revision : 37520ed12f55f6b8d9daedca9947eaa2eb8d7cc7 --- src/base/condcodes.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/condcodes.hh b/src/base/condcodes.hh index 98defdb70..986e8d310 100644 --- a/src/base/condcodes.hh +++ b/src/base/condcodes.hh @@ -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);