mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #3328 from lioncash/frsp
Interpreter: Update CR when FRSP's record bit is set
This commit is contained in:
commit
c829a01c89
@ -272,15 +272,17 @@ void Interpreter::fselx(UGeckoInstruction _inst)
|
|||||||
// !!! warning !!!
|
// !!! warning !!!
|
||||||
// PS1 must be set to the value of PS0 or DragonballZ will be f**ked up
|
// PS1 must be set to the value of PS0 or DragonballZ will be f**ked up
|
||||||
// PS1 is said to be undefined
|
// PS1 is said to be undefined
|
||||||
void Interpreter::frspx(UGeckoInstruction _inst) // round to single
|
void Interpreter::frspx(UGeckoInstruction inst) // round to single
|
||||||
{
|
{
|
||||||
double b = rPS0(_inst.FB);
|
double b = rPS0(inst.FB);
|
||||||
double rounded = ForceSingle(b);
|
double rounded = ForceSingle(b);
|
||||||
SetFI(b != rounded);
|
SetFI(b != rounded);
|
||||||
FPSCR.FR = fabs(rounded) > fabs(b);
|
FPSCR.FR = fabs(rounded) > fabs(b);
|
||||||
UpdateFPRF(rounded);
|
UpdateFPRF(rounded);
|
||||||
rPS0(_inst.FD) = rPS1(_inst.FD) = rounded;
|
rPS0(inst.FD) = rPS1(inst.FD) = rounded;
|
||||||
return;
|
|
||||||
|
if (inst.Rc)
|
||||||
|
Helper_UpdateCR1();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -609,6 +609,7 @@ void Jit64::frspx(UGeckoInstruction inst)
|
|||||||
{
|
{
|
||||||
INSTRUCTION_START
|
INSTRUCTION_START
|
||||||
JITDISABLE(bJITFloatingPointOff);
|
JITDISABLE(bJITFloatingPointOff);
|
||||||
|
FALLBACK_IF(inst.Rc);
|
||||||
int b = inst.FB;
|
int b = inst.FB;
|
||||||
int d = inst.FD;
|
int d = inst.FD;
|
||||||
bool packed = jit->js.op->fprIsDuplicated[b] && !cpu_info.bAtom;
|
bool packed = jit->js.op->fprIsDuplicated[b] && !cpu_info.bAtom;
|
||||||
|
@ -329,6 +329,7 @@ void JitArm64::frspx(UGeckoInstruction inst)
|
|||||||
{
|
{
|
||||||
INSTRUCTION_START
|
INSTRUCTION_START
|
||||||
JITDISABLE(bJITFloatingPointOff);
|
JITDISABLE(bJITFloatingPointOff);
|
||||||
|
FALLBACK_IF(inst.Rc);
|
||||||
|
|
||||||
u32 b = inst.FB, d = inst.FD;
|
u32 b = inst.FB, d = inst.FD;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user