diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2008-06-12 00:51:57 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2008-06-12 00:51:57 -0400 |
commit | 129831c116a6c7031093df624761f8d67bf4e115 (patch) | |
tree | af07b163722e6f5568a4b68d0064d3ec2eb5b839 /src/arch/x86/isa/insts/general_purpose/flags | |
parent | b05299253fdd5a8a913f2799b7cdd2df040c8559 (diff) | |
download | gem5-129831c116a6c7031093df624761f8d67bf4e115.tar.xz |
X86: Make pushes and pops use the stack size instead of the data size.
Diffstat (limited to 'src/arch/x86/isa/insts/general_purpose/flags')
-rw-r--r-- | src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py b/src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py index 5937ac074..59f6aaec2 100644 --- a/src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py +++ b/src/arch/x86/isa/insts/general_purpose/flags/push_and_pop.py @@ -58,14 +58,14 @@ def macroop PUSHF { .adjust_env oszIn64Override rflags t1 - stupd t1, ss, [1, t0, rsp], "-env.dataSize" + stupd t1, ss, [1, t0, rsp], "-env.stackSize", dataSize=ssz }; def macroop POPF { .adjust_env oszIn64Override - ld t1, ss, [1, t0, rsp] - addi rsp, rsp, dsz + ld t1, ss, [1, t0, rsp], dataSize=ssz + addi rsp, rsp, ssz wrflags t1, t0 }; ''' |