mtspr fall through to interpreter not needed for basic SPRs

This commit is contained in:
Matthew Parlane committed 2013-09-30 23:43:11 +13:00
1 parent d261dfaf46
commit cd99e5e3a6
2 files changed
+26

No files matched your search

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