mtspr fall through to interpreter not needed for basic SPRs

This commit is contained in:
Matthew Parlane 2013-09-30 23:43:11 +13:00
parent d261dfaf46
commit cd99e5e3a6
2 changed files with 26 additions and 0 deletions

View File

@ -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:

View File

@ -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: