changeset b7104eda0795 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=b7104eda0795
description:
        X86: Fix a number of places where the wrong form of a microop was used.

diffstat:

5 files changed, 10 insertions(+), 10 deletions(-)
src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_scan.py             
     |    6 +++---
src/arch/x86/isa/insts/general_purpose/control_transfer/interrupts_and_exceptions.py
 |    2 +-
src/arch/x86/isa/insts/general_purpose/control_transfer/jump.py                 
     |    4 ++--
src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py        
     |    4 ++--
src/arch/x86/isa/insts/general_purpose/system_calls.py                          
     |    4 ++--

diffs (105 lines):

diff -r ad135618ef32 -r b7104eda0795 
src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_scan.py
--- a/src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_scan.py       
Thu Jul 16 09:26:38 2009 -0700
+++ b/src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_scan.py       
Thu Jul 16 09:27:56 2009 -0700
@@ -84,7 +84,7 @@
 microcode = '''
 def macroop BSR_R_R {
     # Determine if the input was zero, and also move it to a temp reg.
-    movi t1, t1, t0, dataSize=8
+    mov t1, t1, t0, dataSize=8
     and t1, regm, regm, flags=(ZF,)
     br label("end"), flags=(CZF,)
 
@@ -132,7 +132,7 @@
 
 def macroop BSR_R_M {
 
-    movi t1, t1, t0, dataSize=8
+    mov t1, t1, t0, dataSize=8
     ld t1, seg, sib, disp
 
     # Determine if the input was zero, and also move it to a temp reg.
@@ -184,7 +184,7 @@
 def macroop BSR_R_P {
 
     rdip t7
-    movi t1, t1, t0, dataSize=8
+    mov t1, t1, t0, dataSize=8
     ld t1, seg, riprel, disp
 
     # Determine if the input was zero, and also move it to a temp reg.
diff -r ad135618ef32 -r b7104eda0795 
src/arch/x86/isa/insts/general_purpose/control_transfer/interrupts_and_exceptions.py
--- 
a/src/arch/x86/isa/insts/general_purpose/control_transfer/interrupts_and_exceptions.py
      Thu Jul 16 09:26:38 2009 -0700
+++ 
b/src/arch/x86/isa/insts/general_purpose/control_transfer/interrupts_and_exceptions.py
      Thu Jul 16 09:27:56 2009 -0700
@@ -143,7 +143,7 @@
     # appropriate/other RIP checks.
     # if temp_RIP > CS.limit throw #GP(0)
     rdlimit t6, cs, dataSize=8
-    subi t0, t1, t6, flags=(ECF,)
+    sub t0, t1, t6, flags=(ECF,)
     fault "new GeneralProtection(0)", flags=(CECF,)
 
     #(temp_CPL!=CPL)
diff -r ad135618ef32 -r b7104eda0795 
src/arch/x86/isa/insts/general_purpose/control_transfer/jump.py
--- a/src/arch/x86/isa/insts/general_purpose/control_transfer/jump.py   Thu Jul 
16 09:26:38 2009 -0700
+++ b/src/arch/x86/isa/insts/general_purpose/control_transfer/jump.py   Thu Jul 
16 09:27:56 2009 -0700
@@ -118,7 +118,7 @@
     limm t2, imm, dataSize=8
     # Figure out the width of the offset.
     limm t3, dsz, dataSize=8
-    sll t3, t3, 3, dataSize=8
+    slli t3, t3, 3, dataSize=8
     # Get the selector into t1.
     sll t1, t2, t3, dataSize=8
     mov t1, t0, t1, dataSize=2
@@ -178,7 +178,7 @@
     limm t2, imm, dataSize=8
     # Figure out the width of the offset.
     limm t3, dsz, dataSize=8
-    sll t3, t3, 3, dataSize=8
+    slli t3, t3, 3, dataSize=8
     # Get the selector into t1.
     sll t1, t2, t3, dataSize=8
     mov t1, t0, t1, dataSize=2
diff -r ad135618ef32 -r b7104eda0795 
src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py
--- a/src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py  
Thu Jul 16 09:26:38 2009 -0700
+++ b/src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py  
Thu Jul 16 09:27:56 2009 -0700
@@ -163,7 +163,7 @@
     # Pull the different components out of the immediate
     limm t1, imm
     zexti t2, t1, 15, dataSize=8
-    srl t1, t1, 16
+    srli t1, t1, 16
     zexti t1, t1, 5, dataSize=8
     # t1 is now the masked nesting level, and t2 is the amount of storage.
 
@@ -174,7 +174,7 @@
     mov t6, t6, rsp, dataSize=asz
 
     # If the nesting level is zero, skip all this stuff.
-    subi t0, t1, t0, flags=(EZF,), dataSize=2
+    sub t0, t1, t0, flags=(EZF,), dataSize=2
     br label("skipLoop"), flags=(CEZF,)
 
     # If the level was 1, only push the saved rbp
diff -r ad135618ef32 -r b7104eda0795 
src/arch/x86/isa/insts/general_purpose/system_calls.py
--- a/src/arch/x86/isa/insts/general_purpose/system_calls.py    Thu Jul 16 
09:26:38 2009 -0700
+++ b/src/arch/x86/isa/insts/general_purpose/system_calls.py    Thu Jul 16 
09:27:56 2009 -0700
@@ -65,7 +65,7 @@
     # Stick rflags with RF masked into r11.
     rflags t2
     limm t3, "~RFBit", dataSize=8
-    andi r11, t2, t3, dataSize=8
+    and r11, t2, t3, dataSize=8
 
     rdval t3, star
     srli t3, t3, 32, dataSize=8
@@ -118,7 +118,7 @@
     # Stick rflags with RF masked into r11.
     rflags t2
     limm t3, "~RFBit", dataSize=8
-    andi r11, t2, t3, dataSize=8
+    and r11, t2, t3, dataSize=8
 
     rdval t3, star
     srli t3, t3, 32, dataSize=8
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to