JitArm64: Use STP for pc/npc, part 2

I missed one place in dd8e504.
This commit is contained in:
JosJuice 2021-03-23 21:27:07 +01:00
parent 85aee64cd8
commit 3bd920638d
1 changed files with 3 additions and 2 deletions

View File

@ -153,8 +153,9 @@ void JitArm64::GenerateAsm()
SetJumpTarget(bail); SetJumpTarget(bail);
do_timing = GetCodePtr(); do_timing = GetCodePtr();
// Write the current PC out to PPCSTATE // Write the current PC out to PPCSTATE
STR(IndexType::Unsigned, DISPATCHER_PC, PPC_REG, PPCSTATE_OFF(pc)); static_assert(PPCSTATE_OFF(pc) <= 252);
STR(IndexType::Unsigned, DISPATCHER_PC, PPC_REG, PPCSTATE_OFF(npc)); static_assert(PPCSTATE_OFF(pc) + 4 == PPCSTATE_OFF(npc));
STP(IndexType::Signed, DISPATCHER_PC, DISPATCHER_PC, PPC_REG, PPCSTATE_OFF(pc));
// Check the state pointer to see if we are exiting // Check the state pointer to see if we are exiting
// Gets checked on at the end of every slice // Gets checked on at the end of every slice