summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-17 00:20:03 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-17 00:20:03 -0700
commit32c8514b450a7dda77a3963d00642fcc5de658da (patch)
treeb910e6f0597380efdb0c212840ddfc71227e2ba2 /src
parent33b063a2a7257c0eb9160d622e3b9305c2772559 (diff)
downloadgem5-32c8514b450a7dda77a3963d00642fcc5de658da.tar.xz
X86: Fix a bug introduced to IDIV in a recent attempt to fix another bug.
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py b/src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py
index 47ad1d53c..86f1946ba 100644
--- a/src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py
+++ b/src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py
@@ -459,7 +459,7 @@ def macroop IDIV_B_M
ld t8, seg, sib, disp
#Find the sign of the divisor
- slli t0, t3, 1, flags=(ECF,), dataSize=1
+ slli t0, t8, 1, flags=(ECF,), dataSize=1
# Negate divisor
sub t3, t0, t8, dataSize=1
@@ -531,7 +531,7 @@ def macroop IDIV_B_P
ld t8, seg, riprel, disp
#Find the sign of the divisor
- slli t0, t3, 1, flags=(ECF,), dataSize=1
+ slli t0, t8, 1, flags=(ECF,), dataSize=1
# Negate divisor
sub t3, t0, t8, dataSize=1
@@ -678,7 +678,7 @@ def macroop IDIV_M
#Find the sign of the divisor
#FIXME!!! This depends on shifts setting the carry flag correctly.
- slli t0, t3, 1, flags=(ECF,)
+ slli t0, t8, 1, flags=(ECF,)
# Negate divisor
sub t3, t0, t8
@@ -754,7 +754,7 @@ def macroop IDIV_P
#Find the sign of the divisor
#FIXME!!! This depends on shifts setting the carry flag correctly.
- slli t0, t3, 1, flags=(ECF,)
+ slli t0, t8, 1, flags=(ECF,)
# Negate divisor
sub t3, t0, t8