1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00

Result logging restored

This commit is contained in:
Nekotekina 2015-02-25 15:08:22 +03:00
parent 0b21474b79
commit 9afdb429fa
2 changed files with 16 additions and 0 deletions

View File

@ -97,12 +97,18 @@ void execute_ppu_func_by_index(PPUThread& CPU, u32 index)
if (func->lle_func && !(func->flags & MFF_FORCED_HLE))
{
// call LLE function if available
if (Ini.HLELogging.GetValue())
{
LOG_NOTICE(HLE, "LLE function called: %s", SysCalls::GetHLEFuncName(func->id));
}
func->lle_func(CPU);
if (Ini.HLELogging.GetValue())
{
LOG_NOTICE(HLE, "LLE function finished: %s -> 0x%llx", SysCalls::GetHLEFuncName(func->id), CPU.GPR[3]);
}
}
else if (func->func)
{
@ -112,6 +118,11 @@ void execute_ppu_func_by_index(PPUThread& CPU, u32 index)
}
func->func(CPU);
if (Ini.HLELogging.GetValue())
{
LOG_NOTICE(HLE, "HLE function finished: %s -> 0x%llx", SysCalls::GetHLEFuncName(func->id), CPU.GPR[3]);
}
}
else
{

View File

@ -946,6 +946,11 @@ void SysCalls::DoSyscall(PPUThread& CPU, u64 code)
sc_table[code](CPU);
if (Ini.HLELogging.GetValue())
{
LOG_NOTICE(PPU, "SysCall finished: %s [0x%llx] -> 0x%llx", "unknown", code, CPU.GPR[3]);
}
CPU.m_last_syscall = old_last_syscall;
}