Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
how could this go on unnoticed for so long?
  • Loading branch information
RSDuck committed Aug 31, 2021
1 parent d20543c commit 8d2746e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ARMJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ void InvalidateByAddr(u32 localAddr)
u32 addr = block->Literals()[j];
if (addr == localAddr)
{
if (InvalidLiterals.Find(localAddr) != -1)
if (InvalidLiterals.Find(localAddr) == -1)
{
InvalidLiterals.Add(localAddr);
JIT_DEBUGPRINT("found invalid literal %d\n", InvalidLiterals.Length);
Expand Down
2 changes: 1 addition & 1 deletion src/ARMJIT_x64/ARMJIT_LoadStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void Compiler::Comp_MemAccess(int rd, int rn, const Op2& op2, int size, int flag
if (Config::JIT_LiteralOptimisations && rn == 15 && rd != 15 && op2.IsImm && !(flags & (memop_Post|memop_Store|memop_Writeback)))
{
u32 addr = R15 + op2.Imm * ((flags & memop_SubtractOffset) ? -1 : 1);

if (Comp_MemLoadLiteral(size, flags & memop_SignExtend, rd, addr))
return;
}
Expand Down

0 comments on commit 8d2746e

Please sign in to comment.