mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #9605 from JosJuice/jitarm64-pc-stp-2
JitArm64: Use STP for pc/npc, part 2
This commit is contained in:
commit
e2b5026652
@ -153,8 +153,9 @@ void JitArm64::GenerateAsm()
|
||||
SetJumpTarget(bail);
|
||||
do_timing = GetCodePtr();
|
||||
// Write the current PC out to PPCSTATE
|
||||
STR(IndexType::Unsigned, DISPATCHER_PC, PPC_REG, PPCSTATE_OFF(pc));
|
||||
STR(IndexType::Unsigned, DISPATCHER_PC, PPC_REG, PPCSTATE_OFF(npc));
|
||||
static_assert(PPCSTATE_OFF(pc) <= 252);
|
||||
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
|
||||
// Gets checked on at the end of every slice
|
||||
|
Loading…
Reference in New Issue
Block a user