changeset 843ec3da7584 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=843ec3da7584
description:
        X86: Fix a bug introduced to IDIV in a recent attempt to fix another 
bug.

diffstat:

1 file changed, 4 insertions(+), 4 deletions(-)
src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py |    8 
++++----

diffs (39 lines):

diff -r 297b8ef5eb35 -r 843ec3da7584 
src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py
--- a/src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py  
Sun Aug 09 04:01:56 2009 -0700
+++ b/src/arch/x86/isa/insts/general_purpose/arithmetic/multiply_and_divide.py  
Mon Aug 17 00:20:03 2009 -0700
@@ -459,7 +459,7 @@
     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 @@
     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 @@
 
     #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 @@
 
     #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
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to