Change syscall time debug to a define

This commit is contained in:
Ryan Houdek authored and Stefanos Kornilios Mitsis Poiitidis committed 2020-03-06 07:56:13 +02:00
1 parent eb1f643e16
commit 299947e3bf
1 file changed
+9 -5
+9 -5
View File
@@ -742,18 +742,22 @@ uint64_t SyscallHandler::HandleSyscall(FEXCore::Core::InternalThreadState *Threa
if (Args->Argument[1]) {
time_t *ClockResult = CTX->MemoryMapper.GetPointer<time_t*>(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<timespec*>(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: {