Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mtspr fall through to interpreter not needed for basic SPRs
  • Loading branch information
Parlane committed Sep 30, 2013
1 parent d261dfa commit cd99e5e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Source/Core/Core/Src/PowerPC/Jit64/Jit_SystemRegisters.cpp
Expand Up @@ -26,6 +26,19 @@ void Jit64::mtspr(UGeckoInstruction inst)

switch (iIndex)
{

case SPR_DMAU:

case SPR_SPRG0:
case SPR_SPRG1:
case SPR_SPRG2:
case SPR_SPRG3:

case SPR_SRR0:
case SPR_SRR1:
// These are safe to do the easy way, see the bottom of this function.
break;

case SPR_LR:
case SPR_CTR:
case SPR_XER:
Expand Down
13 changes: 13 additions & 0 deletions Source/Core/Core/Src/PowerPC/JitArm32/JitArm_SystemRegisters.cpp
Expand Up @@ -36,6 +36,19 @@ void JitArm::mtspr(UGeckoInstruction inst)

switch (iIndex)
{

case SPR_DMAU:

case SPR_SPRG0:
case SPR_SPRG1:
case SPR_SPRG2:
case SPR_SPRG3:

case SPR_SRR0:
case SPR_SRR1:
// These are safe to do the easy way, see the bottom of this function.
break;

case SPR_LR:
case SPR_CTR:
case SPR_XER:
Expand Down

0 comments on commit cd99e5e

Please sign in to comment.