Implement near returns.
--HG-- extra : convert_revision : 3d6e8a976d31cb016a4b78200716b0ece155137a
This commit is contained in:
parent
99310a1d93
commit
dbf361128a
1 changed files with 11 additions and 5 deletions
|
@ -53,8 +53,14 @@
|
|||
#
|
||||
# Authors: Gabe Black
|
||||
|
||||
microcode = ""
|
||||
#let {{
|
||||
# class RET(Inst):
|
||||
# "GenFault ${new UnimpInstFault}"
|
||||
#}};
|
||||
microcode = '''
|
||||
def macroop RET
|
||||
{
|
||||
# Make the default data size of rets 64 bits in 64 bit mode
|
||||
.adjust_env oszIn64Override
|
||||
|
||||
ld t1, ss, [0, t0, rsp]
|
||||
addi rsp, rsp, dsz
|
||||
wripi t1, 0
|
||||
};
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue