diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-05 03:01:07 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-05 03:01:07 -0700 |
commit | c8b1a4583e7062d0bf20a5d1c91f799c3bd79270 (patch) | |
tree | 07151ca241bacc6edf9c862591ba9bf42b9a4808 | |
parent | bab4597fc555dfe25b5d22c8634361e01bb2e981 (diff) | |
download | gem5-c8b1a4583e7062d0bf20a5d1c91f799c3bd79270.tar.xz |
X86: Fix the computation of the bottom part of rotate right with carry.
-rw-r--r-- | src/arch/x86/isa/microops/regop.isa | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index 1aa7c510b..e3ad164eb 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -768,7 +768,7 @@ let {{ 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 |