From 0bf8f2a527f0bc83e6fabf06bd077d46ed2181b4 Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 9 Jun 2020 06:32:39 +0300 Subject: [PATCH] PPU interpreters: Fix VRFIM, VRFIN, VRFIP, VRFIZ --- rpcs3/Emu/Cell/PPUInterpreter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUInterpreter.cpp b/rpcs3/Emu/Cell/PPUInterpreter.cpp index 5f8b79219d..9a10960055 100644 --- a/rpcs3/Emu/Cell/PPUInterpreter.cpp +++ b/rpcs3/Emu/Cell/PPUInterpreter.cpp @@ -1890,7 +1890,7 @@ bool ppu_interpreter::VRFIM(ppu_thread& ppu, ppu_opcode_t op) d._f[w] = std::floor(b._f[w]); } - ppu.vr[op.vb] = vec_handle_nan(d, b); + ppu.vr[op.vd] = vec_handle_nan(d, b); return true; } @@ -1904,7 +1904,7 @@ bool ppu_interpreter::VRFIN(ppu_thread& ppu, ppu_opcode_t op) d._f[w] = std::nearbyint(b._f[w]); } - ppu.vr[op.vb] = vec_handle_nan(d, b); + ppu.vr[op.vd] = vec_handle_nan(d, b); return true; } @@ -1918,7 +1918,7 @@ bool ppu_interpreter::VRFIP(ppu_thread& ppu, ppu_opcode_t op) d._f[w] = std::ceil(b._f[w]); } - ppu.vr[op.vb] = vec_handle_nan(d, b); + ppu.vr[op.vd] = vec_handle_nan(d, b); return true; } @@ -1932,7 +1932,7 @@ bool ppu_interpreter::VRFIZ(ppu_thread& ppu, ppu_opcode_t op) d._f[w] = std::truncf(b._f[w]); } - ppu.vr[op.vb] = vec_handle_nan(d, b); + ppu.vr[op.vd] = vec_handle_nan(d, b); return true; }