projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dd65dc
)
Condition Codes: Fix the findParity function.
author
Gabe Black
<gblack@eecs.umich.edu>
Wed, 26 Sep 2007 03:26:10 +0000
(20:26 -0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Wed, 26 Sep 2007 03:26:10 +0000
(20:26 -0700)
--HG--
extra : convert_revision :
37520ed12f55f6b8d9daedca9947eaa2eb8d7cc7
src/base/condcodes.hh
patch
|
blob
|
history
diff --git
a/src/base/condcodes.hh
b/src/base/condcodes.hh
index 98defdb705029e7c59777ef9f0e996ee1cc9c0ea..986e8d3106730f039de45879cc89321573532478 100644
(file)
--- 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);