From 933737e8f0d597dc16a4ded1685132ce1a30fba3 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 27 Aug 2020 18:40:13 +0300 Subject: [PATCH] PPU: log LR in HLE functions --- rpcs3/Emu/Cell/PPUThread.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index c2daf076de..24bbf6dfca 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -929,7 +929,14 @@ void ppu_thread::fast_call(u32 addr, u32 rtoc) name_cache = _this->ppu_tname.load(); } - return fmt::format("PPU[0x%x] Thread (%s) [0x%08x]", _this->id, *name_cache.get(), _this->cia); + const auto cia = _this->cia; + + if (_this->current_function && vm::read32(cia) != ppu_instructions::SC(0)) + { + return fmt::format("PPU[0x%x] Thread (%s) [HLE:0x%08x, LR:0x%08x]", _this->id, *name_cache.get(), cia, _this->lr); + } + + return fmt::format("PPU[0x%x] Thread (%s) [0x%08x]", _this->id, *name_cache.get(), cia); }; auto at_ret = [&]()