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

View file

@ -946,6 +946,11 @@ void SysCalls::DoSyscall(PPUThread& CPU, u64 code)
sc_table[code](CPU); 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; CPU.m_last_syscall = old_last_syscall;
} }