summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-09-25 20:26:10 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-09-25 20:26:10 -0700
commit58c448ced510835631527fa64a0ebd0b497b525b (patch)
treec6fdf75ea8133d37bfd2944735e149bcc8861732
parent2dd65dc2546216ef132e30f5c590e11e35b4ff37 (diff)
downloadgem5-58c448ced510835631527fa64a0ebd0b497b525b.tar.xz
Condition Codes: Fix the findParity function.
--HG-- extra : convert_revision : 37520ed12f55f6b8d9daedca9947eaa2eb8d7cc7
-rw-r--r--src/base/condcodes.hh2
1 files changed, 1 insertions, 1 deletions
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);