X86: Don't truncate the immediate parameter for the ENTER instruction.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 7 Aug 2009 17:12:29 +0000 (10:12 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 7 Aug 2009 17:12:29 +0000 (10:12 -0700)
src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py

index 8ad5e4763bd4f9e51c2321fb6b73acd2763ae55e..6b18caef039a5c44d04d8db8989cf7919387c388 100644 (file)
@@ -162,9 +162,9 @@ def macroop ENTER_I_I {
     # writes any values.
 
     # Pull the different components out of the immediate
-    limm t1, imm
+    limm t1, imm, dataSize=8
     zexti t2, t1, 15, dataSize=8
-    srli t1, t1, 16
+    srli t1, t1, 16, dataSize=8
     zexti t1, t1, 5, dataSize=8
     # t1 is now the masked nesting level, and t2 is the amount of storage.