mirror of
https://github.com/rafaelvcaetano/melonDS-android-lib.git
synced 2024-11-23 13:50:11 +00:00
Always allocate R15 for LDR_PCREL instruction, even if literal optimizations are enabled
This fixes crashes on some games when accessing an invalid literal through this instruction
This commit is contained in:
parent
cbe93c0d60
commit
0c6ed7ca33
@ -386,8 +386,8 @@ Info Decode(bool thumb, u32 num, u32 instr)
|
|||||||
{
|
{
|
||||||
if (res.Kind == tk_LDR_PCREL)
|
if (res.Kind == tk_LDR_PCREL)
|
||||||
{
|
{
|
||||||
if (!ARMJIT::LiteralOptimizations)
|
//if (!ARMJIT::LiteralOptimizations)
|
||||||
res.SrcRegs |= 1 << 15;
|
res.SrcRegs |= 1 << 15;
|
||||||
res.SpecialKind = special_LoadLiteral;
|
res.SpecialKind = special_LoadLiteral;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user