changeset 751b06abbaae in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=751b06abbaae
description:
X86: Fix the computation of the bottom part of rotate right with carry.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/arch/x86/isa/microops/regop.isa | 2 +-
diffs (12 lines):
diff -r fc096f28bcd2 -r 751b06abbaae src/arch/x86/isa/microops/regop.isa
--- a/src/arch/x86/isa/microops/regop.isa Wed Aug 05 03:00:43 2009 -0700
+++ b/src/arch/x86/isa/microops/regop.isa Wed Aug 05 03:01:07 2009 -0700
@@ -768,7 +768,7 @@
uint64_t top = flags.cf << (dataSize * 8 - shiftAmt);
if(shiftAmt > 1)
top |= psrc1 << (dataSize * 8 - shiftAmt + 1);
- uint64_t bottom = bits(psrc1, dataSize * 8, shiftAmt);
+ uint64_t bottom = bits(psrc1, dataSize * 8 - 1, shiftAmt);
DestReg = merge(DestReg, top | bottom, dataSize);
}
else
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev