summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-06-14 13:52:08 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-06-14 13:52:08 +0000
commit752199f8279823088783103616cc41fa47a4b7ea (patch)
treed513bf6a97db94834053f338ce5ec5c80c65d936
parentcd3fee1b81ad3c33733ed55e20d00464cdf791f5 (diff)
downloadgem5-752199f8279823088783103616cc41fa47a4b7ea.tar.xz
Make POP special case its dataSize to default to 64 bits in 64 bit mode.
--HG-- extra : convert_revision : 5c6251d962d9997676ffc795bb92eeb588caed39
-rw-r--r--src/arch/x86/isa/insts/data_transfer/stack_operations.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/x86/isa/insts/data_transfer/stack_operations.py b/src/arch/x86/isa/insts/data_transfer/stack_operations.py
index 3223d9b0f..fff0f749f 100644
--- a/src/arch/x86/isa/insts/data_transfer/stack_operations.py
+++ b/src/arch/x86/isa/insts/data_transfer/stack_operations.py
@@ -55,6 +55,7 @@
microcode = '''
def macroop POP {
+ .adjust_env "if(machInst.mode.submode == SixtyFourBitMode && env.dataSize == 4) env.dataSize = 8\;"
# There needs to be a load here to actually "pop" the data
addi "INTREG_RSP", "INTREG_RSP", "env.dataSize"
};