mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-07 21:00:18 +02:00
HostRunner and FEX may or may not set stack. Fix the cases that assumed it was correctly setup.
29 lines
251 B
NASM
29 lines
251 B
NASM
%ifdef CONFIG
|
|
{
|
|
"Match": "All",
|
|
"RegData": {
|
|
"RAX": "0x20"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rsp, 0xe000_1000
|
|
|
|
jmp main
|
|
|
|
patched_op:
|
|
mov rax,-1
|
|
ret
|
|
|
|
main:
|
|
|
|
; warm up the cache
|
|
call patched_op
|
|
|
|
mov byte [rel patched_op], 0xC3
|
|
|
|
mov rax, 32
|
|
call patched_op
|
|
|
|
hlt
|