mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
Test behaviour themselves not changed at all, just data moved or aligned. For tests that aren't explicitly testing out SMC behaviour, we were accidentally relying on some aggressive SMC tracking by mixing data and code in the same page. To fix this just align the test's data to the next page boundary which means FEX's SMC tracking won't get triggered since it is no longer living in the same page. This has been a thorn for a while, so just get rid of it. We obviously still have ASM tests that still exist that /do/ rely on SMC, and those are still expected to work.
29 lines
328 B
NASM
29 lines
328 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x400",
|
|
"RBX": "0x0",
|
|
"MM7": ["0x8000000000000000", "0x3FFF"]
|
|
},
|
|
"Mode": "32BIT"
|
|
}
|
|
%endif
|
|
|
|
lea edx, [rel .data]
|
|
|
|
fld dword [edx + 8 * 0]
|
|
|
|
fistp qword [edx + 8 * 1]
|
|
|
|
fld1
|
|
|
|
mov eax, dword [edx + 4 * 2]
|
|
mov ebx, dword [edx + 4 * 3]
|
|
|
|
hlt
|
|
|
|
align 4096
|
|
.data:
|
|
dq 0x44800000
|
|
dq -1
|