1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 20:22:30 +01:00

PPU: log LR in HLE functions

This commit is contained in:
Eladash 2020-08-27 18:40:13 +03:00 committed by Ani
parent 47b545282e
commit 933737e8f0

View File

@ -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 = [&]()