changeset fc096f28bcd2 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=fc096f28bcd2
description:
        X86: Fix the computation of the upper 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 b9aa6a397b57 -r fc096f28bcd2 src/arch/x86/isa/microops/regop.isa
--- a/src/arch/x86/isa/microops/regop.isa       Wed Aug 05 03:00:23 2009 -0700
+++ b/src/arch/x86/isa/microops/regop.isa       Wed Aug 05 03:00:43 2009 -0700
@@ -767,7 +767,7 @@
                 CCFlagBits flags = ccFlagBits;
                 uint64_t top = flags.cf << (dataSize * 8 - shiftAmt);
                 if(shiftAmt > 1)
-                    top |= psrc1 << (dataSize * 8 - shiftAmt - 1);
+                    top |= psrc1 << (dataSize * 8 - shiftAmt + 1);
                 uint64_t bottom = bits(psrc1, dataSize * 8, shiftAmt);
                 DestReg = merge(DestReg, top | bottom, dataSize);
             }
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to