mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-25 00:01:26 +02:00
Change syscall time debug to a define
This commit is contained in:
1 parent
eb1f643e16
commit
299947e3bf
1 file changed
+9
-5
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user