From: Gabe Black Date: Wed, 26 Sep 2007 03:26:10 +0000 (-0700) Subject: Condition Codes: Fix the findParity function. X-Git-Tag: m5_2.0_beta4~73^2~12 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58c448ced510835631527fa64a0ebd0b497b525b;p=gem5.git Condition Codes: Fix the findParity function. --HG-- extra : convert_revision : 37520ed12f55f6b8d9daedca9947eaa2eb8d7cc7 --- 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);