[ARM] Implement MFTB
This commit is contained in:
parent
fc6e06cb72
commit
5899013876
|
@ -165,6 +165,7 @@ public:
|
||||||
void mfmsr(UGeckoInstruction _inst);
|
void mfmsr(UGeckoInstruction _inst);
|
||||||
void mtspr(UGeckoInstruction _inst);
|
void mtspr(UGeckoInstruction _inst);
|
||||||
void mfspr(UGeckoInstruction _inst);
|
void mfspr(UGeckoInstruction _inst);
|
||||||
|
void mftb(UGeckoInstruction _inst);
|
||||||
|
|
||||||
// LoadStore
|
// LoadStore
|
||||||
void icbi(UGeckoInstruction _inst);
|
void icbi(UGeckoInstruction _inst);
|
||||||
|
|
|
@ -72,7 +72,12 @@ void JitArm::mtspr(UGeckoInstruction inst)
|
||||||
// OK, this is easy.
|
// OK, this is easy.
|
||||||
STR(RD, R9, PPCSTATE_OFF(spr) + iIndex * 4);
|
STR(RD, R9, PPCSTATE_OFF(spr) + iIndex * 4);
|
||||||
}
|
}
|
||||||
|
void JitArm::mftb(UGeckoInstruction inst)
|
||||||
|
{
|
||||||
|
INSTRUCTION_START
|
||||||
|
JITDISABLE(SystemRegisters)
|
||||||
|
mfspr(inst);
|
||||||
|
}
|
||||||
void JitArm::mfspr(UGeckoInstruction inst)
|
void JitArm::mfspr(UGeckoInstruction inst)
|
||||||
{
|
{
|
||||||
INSTRUCTION_START
|
INSTRUCTION_START
|
||||||
|
|
|
@ -287,7 +287,7 @@ static GekkoOPTemplate table31[] =
|
||||||
{242, &JitArm::Default}, //"mtsrin", OPTYPE_SYSTEM, 0}},
|
{242, &JitArm::Default}, //"mtsrin", OPTYPE_SYSTEM, 0}},
|
||||||
{339, &JitArm::mfspr}, //"mfspr", OPTYPE_SPR, FL_OUT_D}},
|
{339, &JitArm::mfspr}, //"mfspr", OPTYPE_SPR, FL_OUT_D}},
|
||||||
{467, &JitArm::mtspr}, //"mtspr", OPTYPE_SPR, 0, 2}},
|
{467, &JitArm::mtspr}, //"mtspr", OPTYPE_SPR, 0, 2}},
|
||||||
{371, &JitArm::Default}, //"mftb", OPTYPE_SYSTEM, FL_OUT_D | FL_TIMER}},
|
{371, &JitArm::mftb}, //"mftb", OPTYPE_SYSTEM, FL_OUT_D | FL_TIMER}},
|
||||||
{512, &JitArm::Default}, //"mcrxr", OPTYPE_SYSTEM, 0}},
|
{512, &JitArm::Default}, //"mcrxr", OPTYPE_SYSTEM, 0}},
|
||||||
{595, &JitArm::Default}, //"mfsr", OPTYPE_SYSTEM, FL_OUT_D, 2}},
|
{595, &JitArm::Default}, //"mfsr", OPTYPE_SYSTEM, FL_OUT_D, 2}},
|
||||||
{659, &JitArm::Default}, //"mfsrin", OPTYPE_SYSTEM, FL_OUT_D, 2}},
|
{659, &JitArm::Default}, //"mfsrin", OPTYPE_SYSTEM, FL_OUT_D, 2}},
|
||||||
|
|
Loading…
Reference in New Issue