From ea1c9a2e1705d019b9d2b41ab094f7c45f31f9b3 Mon Sep 17 00:00:00 2001 From: eladash Date: Tue, 16 Apr 2019 14:59:57 +0300 Subject: [PATCH] Fix PPU Breakpoints and ppu_check_toc --- rpcs3/Emu/Cell/PPUThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 594614fd82..09affb232a 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -252,7 +252,7 @@ static bool ppu_check_toc(ppu_thread& ppu, ppu_opcode_t op) } // Fallback to the interpreter function - if (reinterpret_cast(std::uintptr_t{ppu_cache(ppu.cia)})(ppu, op)) + if (reinterpret_cast(std::uintptr_t{(u32)ppu_cache(ppu.cia)})(ppu, op)) { ppu.cia += 4; } @@ -336,7 +336,7 @@ static bool ppu_break(ppu_thread& ppu, ppu_opcode_t op) } // Fallback to the interpreter function - if (reinterpret_cast(std::uintptr_t{ppu_cache(ppu.cia)})(ppu, op)) + if (reinterpret_cast(std::uintptr_t{(u32)ppu_cache(ppu.cia)})(ppu, op)) { ppu.cia += 4; }