diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-07-20 23:16:03 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-07-20 23:16:03 -0700 |
commit | fc1b7d62b7e8e5cf59956875720dbd1deb68af93 (patch) | |
tree | 72af2ec10ae733a6dea67a39141602c2f379ba32 /src/arch/x86/isa/insts/data_transfer/stack_operations.py | |
parent | 009df5ff1e19276433975fddd43a306ff653a20e (diff) | |
download | gem5-fc1b7d62b7e8e5cf59956875720dbd1deb68af93.tar.xz |
Fixed the distinction between far and near versions of jmp, call and ret. Implemented some shifts, rotates, and pushes.
--HG--
extra : convert_revision : fcb06189ff213e82da16ac43231feb308cb3a285
Diffstat (limited to 'src/arch/x86/isa/insts/data_transfer/stack_operations.py')
-rw-r--r-- | src/arch/x86/isa/insts/data_transfer/stack_operations.py | 19 |
1 files changed, 19 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 585437b8c..c381dc4f4 100644 --- a/src/arch/x86/isa/insts/data_transfer/stack_operations.py +++ b/src/arch/x86/isa/insts/data_transfer/stack_operations.py @@ -69,6 +69,25 @@ def macroop PUSH_R { subi rsp, rsp, dsz st reg, ss, [0, t0, rsp] }; + +def macroop PUSH_M { + # Make the default data size of pops 64 bits in 64 bit mode + .adjust_env oszIn64Override + + ld t1, ds, [scale, index, base], disp + subi rsp, rsp, dsz + st t1, ss, [0, t0, rsp] +}; + +def macroop PUSH_P { + # Make the default data size of pops 64 bits in 64 bit mode + .adjust_env oszIn64Override + + rdip t7 + ld t1, ds, [0, t0, t7], disp + subi rsp, rsp, dsz + st t1, ss, [0, t0, rsp] +}; ''' #let {{ # class POPA(Inst): |