X86: Fix a bug in IRET_PROT's microcode. The immediate form of sra was intended.
authorGabe Black <gblack@eecs.umich.edu>
Thu, 9 Jul 2009 06:01:54 +0000 (23:01 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 9 Jul 2009 06:01:54 +0000 (23:01 -0700)
src/arch/x86/isa/insts/general_purpose/control_transfer/interrupts_and_exceptions.py

index 8203f7c2c89faf6b0a4ea6fdcd592f3e733e430d..358fe43c84c363f8161682e1f35fe0d780281b4a 100644 (file)
@@ -158,7 +158,7 @@ processCSDescriptor:
 
 doPopStackStuffAndCheckRIP:
     # Check if the RIP is canonical.
-    sra t7, t1, 47, flags=(EZF,), dataSize=ssz
+    srai t7, t1, 47, flags=(EZF,), dataSize=ssz
     # if t7 isn't 0 or -1, it wasn't canonical.
     br label("doPopStackStuff"), flags=(CEZF,)
     addi t0, t7, 1, flags=(EZF,), dataSize=ssz