projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2ab31
)
Zeroed out the actual LSB in addition to moving it's original value the MSB.
author
Gabe Black
<gblack@eecs.umich.edu>
Thu, 19 Oct 2006 00:53:59 +0000
(20:53 -0400)
committer
Gabe Black
<gblack@eecs.umich.edu>
Thu, 19 Oct 2006 00:53:59 +0000
(20:53 -0400)
--HG--
extra : convert_revision :
d29efe01781d72ee6e61818e7b93972262c0616b
src/arch/sparc/isa/operands.isa
patch
|
blob
|
history
diff --git
a/src/arch/sparc/isa/operands.isa
b/src/arch/sparc/isa/operands.isa
index 9dcd735985ac35996ef2ddfdaebefdd7d3823a1c..40926a5fb79f5112b6713627c72096e66a8a8503 100644
(file)
--- a/
src/arch/sparc/isa/operands.isa
+++ b/
src/arch/sparc/isa/operands.isa
@@
-48,7
+48,7
@@
output header {{
// MSB put in the LSB position but are otherwise normal.
static inline unsigned int dfpr(unsigned int regNum)
{
- return
regNum
| ((regNum & 1) << 5);
+ return
(regNum & (~1))
| ((regNum & 1) << 5);
}
}};