-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3305 from Sonicadvance1/fix_crash2
JIT: Fixes crash in TestNZ
- Loading branch information
Showing
4 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
%ifdef CONFIG | ||
{ | ||
"RegData": { | ||
"RAX": "0x500000020" | ||
} | ||
} | ||
%endif | ||
|
||
; FEX had a bug in its `TestNZ` opcode where it would try to load a constant in to the tst instruction | ||
; If the constant didn't fit in a logical encoding it would generate invalid instructions and also crash. | ||
; This snippet of code was found in libGLX.so.0.0.0 when trying to load steamwebhelper. | ||
mov eax, 0x28000001 | ||
shl rax, 0x5 | ||
|
||
hlt |