JITIL : fixes games that require "EnableFPRF=True" under jitil

- Super Monkey Ball
- Super Monkey Ball 2
- Virtua Striker 2002
- ...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4836 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar 2010-01-14 16:59:52 +00:00
parent 0ec6d85b2f
commit d7b4175605
1 changed files with 8 additions and 1 deletions

View File

@ -35,6 +35,10 @@ void Jit64::fp_arith_s(UGeckoInstruction inst)
inst.SUBOP5 != 21 && inst.SUBOP5 != 26)) {
Default(inst); return;
}
// Only the interpreter has "proper" support for (some) FP flags
if (inst.SUBOP5 == 25 && Core::g_CoreStartupParameter.bEnableFPRF) {
Default(inst); return;
}
IREmitter::InstLoc val = ibuild.EmitLoadFReg(inst.FA);
switch (inst.SUBOP5)
{
@ -73,7 +77,10 @@ void Jit64::fmaddXX(UGeckoInstruction inst)
if (inst.Rc) {
Default(inst); return;
}
// Only the interpreter has "proper" support for (some) FP flags
if (inst.SUBOP5 == 29 && Core::g_CoreStartupParameter.bEnableFPRF) {
Default(inst); return;
}
IREmitter::InstLoc val = ibuild.EmitLoadFReg(inst.FA);
val = ibuild.EmitFDMul(val, ibuild.EmitLoadFReg(inst.FC));
if (inst.SUBOP5 & 1)