From 299947e3bf25ae1a2102f22637510f92f00a0910 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 21 Jan 2020 15:08:25 -0800 Subject: [PATCH] Change syscall time debug to a define --- Source/Interface/HLE/Syscalls.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Source/Interface/HLE/Syscalls.cpp b/Source/Interface/HLE/Syscalls.cpp index 9b5fcdd85..cf13ac3a9 100644 --- a/Source/Interface/HLE/Syscalls.cpp +++ b/Source/Interface/HLE/Syscalls.cpp @@ -742,18 +742,22 @@ uint64_t SyscallHandler::HandleSyscall(FEXCore::Core::InternalThreadState *Threa if (Args->Argument[1]) { time_t *ClockResult = CTX->MemoryMapper.GetPointer(Args->Argument[1]); *ClockResult = TmpTime; +#ifdef DEBUG_TIME + memset(ClockResult, 0, sizeof(time_t)); +#endif } Result = TmpTime; - // XXX: Debug - // memset(ClockResult, 0, sizeof(time_t)); - // Result = 0; +#ifdef DEBUG_TIME + Result = 0; +#endif } break; case SYSCALL_CLOCK_GETTIME: { timespec *ClockResult = CTX->MemoryMapper.GetPointer(Args->Argument[2]); Result = clock_gettime(Args->Argument[1], ClockResult); - // XXX: Debug - // memset(ClockResult, 0, sizeof(timespec)); +#ifdef DEBUG_TIME + memset(ClockResult, 0, sizeof(timespec)); +#endif } break; case SYSCALL_SYSINFO: {