Stub wsbh/wsbw for x86.

This commit is contained in:
Sacha 2013-06-05 14:55:01 +10:00
parent 6712de1136
commit a26b48fc0b
2 changed files with 30 additions and 0 deletions

View File

@ -711,6 +711,35 @@ namespace MIPSComp
}
}
void Jit::Comp_Allegrex2(u32 op)
{
CONDITIONAL_DISABLE
int rt = _RT;
int rd = _RD;
// Don't change $zr.
if (rd == 0)
return;
DISABLE;
switch (op & 0x3ff)
{
case 0xA0: //wsbh
gpr.Lock(rd, rt);
gpr.BindToRegister(rd, rd == rt, true);
// Stub
gpr.UnlockAll();
break;
case 0xE0: //wsbw
gpr.Lock(rd, rt);
gpr.BindToRegister(rd, rd == rt, true);
// Stub
gpr.UnlockAll();
break;
default:
Comp_Generic(op);
break;
}
}
void Jit::Comp_MulDivType(u32 op)
{

View File

@ -185,6 +185,7 @@ public:
void Comp_RType3(u32 op);
void Comp_ShiftType(u32 op);
void Comp_Allegrex(u32 op);
void Comp_Allegrex2(u32 op);
void Comp_VBranch(u32 op);
void Comp_MulDivType(u32 op);
void Comp_Special3(u32 op);