From 2629f9be442adb405481439a39118e65d1b0ded3 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 28 Jun 2017 14:54:53 +0300 Subject: [PATCH] PPU: VREFP, VRSQRTEFP changed --- rpcs3/Emu/Cell/PPUInterpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUInterpreter.cpp b/rpcs3/Emu/Cell/PPUInterpreter.cpp index 6718af0f20..65097521cb 100644 --- a/rpcs3/Emu/Cell/PPUInterpreter.cpp +++ b/rpcs3/Emu/Cell/PPUInterpreter.cpp @@ -1721,7 +1721,7 @@ bool ppu_interpreter_precise::VPKUWUS(ppu_thread& ppu, ppu_opcode_t op) bool ppu_interpreter::VREFP(ppu_thread& ppu, ppu_opcode_t op) { - ppu.vr[op.vd].vf = _mm_rcp_ps(ppu.vr[op.vb].vf); + ppu.vr[op.vd].vf = _mm_div_ps(_mm_set_ps(1.0f, 1.0f, 1.0f, 1.0f), ppu.vr[op.vb].vf); return true; } @@ -1814,7 +1814,7 @@ bool ppu_interpreter::VRLW(ppu_thread& ppu, ppu_opcode_t op) bool ppu_interpreter::VRSQRTEFP(ppu_thread& ppu, ppu_opcode_t op) { - ppu.vr[op.vd].vf = _mm_rsqrt_ps(ppu.vr[op.vb].vf); + ppu.vr[op.vd].vf = _mm_div_ps(_mm_set_ps(1.0f, 1.0f, 1.0f, 1.0f), _mm_sqrt_ps(ppu.vr[op.vb].vf)); return true; }