summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-07 10:12:29 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-07 10:12:29 -0700
commit2daba26359f21ee42f0dbd09ab8f1971b5c1112e (patch)
tree085b1f043d5bd59bd42d1ef409c52b253e6b62a5 /src/arch/x86/isa/insts
parent2e3446a410f77baa26f2bcc7226aed91bc3d9b32 (diff)
downloadgem5-2daba26359f21ee42f0dbd09ab8f1971b5c1112e.tar.xz
X86: Don't truncate the immediate parameter for the ENTER instruction.
Diffstat (limited to 'src/arch/x86/isa/insts')
-rw-r--r--src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py b/src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py
index 8ad5e4763..6b18caef0 100644
--- a/src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py
+++ b/src/arch/x86/isa/insts/general_purpose/data_transfer/stack_operations.py
@@ -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.