From b60659377464949132bd053437b29d412b95ef81 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 13 May 2016 14:44:53 +0200 Subject: [PATCH] ftrc fix - revert back to nulldc defaults --- core/hw/sh4/interpr/sh4_fpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hw/sh4/interpr/sh4_fpu.cpp b/core/hw/sh4/interpr/sh4_fpu.cpp index aa6acaec7..a64b030c5 100644 --- a/core/hw/sh4/interpr/sh4_fpu.cpp +++ b/core/hw/sh4/interpr/sh4_fpu.cpp @@ -628,7 +628,7 @@ sh4op(i1111_nnnn_0011_1101) if (fpscr.PR == 0) { u32 n = GetN(op); - fpul = (u32)(s32)fr[n]; + fpul = (u32)(s32)min(fr[n],(float)0x7FFFFFBF); if (fpul==0x80000000) //this is actually a x86-specific fix. I think ARM saturates {