From 745c453b3300382fc2f7da56c8e95cc87fc6f5c7 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 28 Jun 2014 03:10:30 -0700 Subject: [PATCH] Remove hleAfterCheckAllCallbacks(). Not being used, doesn't make sense - rescheduling is what does that, only. --- Core/HLE/HLE.cpp | 10 ---------- Core/HLE/HLE.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/Core/HLE/HLE.cpp b/Core/HLE/HLE.cpp index adf2ba12b5..7ff3ff92f8 100644 --- a/Core/HLE/HLE.cpp +++ b/Core/HLE/HLE.cpp @@ -48,8 +48,6 @@ enum HLE_AFTER_RESCHED = 0x01, // Call current thread's callbacks after the syscall. HLE_AFTER_CURRENT_CALLBACKS = 0x02, - // Check all threads' callbacks after the syscall. - HLE_AFTER_ALL_CALLBACKS = 0x04, // Reschedule and process current thread's callbacks after the syscall. HLE_AFTER_RESCHED_CALLBACKS = 0x08, // Run interrupts (and probably reschedule) after the syscall. @@ -256,11 +254,6 @@ const char *GetFuncName(int moduleIndex, int func) return "[unknown]"; } -void hleCheckAllCallbacks() -{ - hleAfterSyscall |= HLE_AFTER_ALL_CALLBACKS; -} - void hleCheckCurrentCallbacks() { hleAfterSyscall |= HLE_AFTER_CURRENT_CALLBACKS; @@ -384,13 +377,10 @@ inline void hleFinishSyscall(const HLEFunction &info) if ((hleAfterSyscall & HLE_AFTER_RUN_INTERRUPTS) != 0) __RunOnePendingInterrupt(); - // Rescheduling will also do HLE_AFTER_ALL_CALLBACKS. if ((hleAfterSyscall & HLE_AFTER_RESCHED_CALLBACKS) != 0) __KernelReSchedule(true, hleAfterSyscallReschedReason); else if ((hleAfterSyscall & HLE_AFTER_RESCHED) != 0) __KernelReSchedule(hleAfterSyscallReschedReason); - else if ((hleAfterSyscall & HLE_AFTER_ALL_CALLBACKS) != 0) - __KernelCheckCallbacks(); if ((hleAfterSyscall & HLE_AFTER_DEBUG_BREAK) != 0) { diff --git a/Core/HLE/HLE.h b/Core/HLE/HLE.h index dac4527bf0..d57659e742 100644 --- a/Core/HLE/HLE.h +++ b/Core/HLE/HLE.h @@ -79,8 +79,6 @@ void RegisterModule(const char *name, int numFunctions, const HLEFunction *funcT // Run the current thread's callbacks after the syscall finishes. void hleCheckCurrentCallbacks(); -// Check and potentially run all thread's callbacks after the syscall finishes. -void hleCheckAllCallbacks(); // Reschedule after the syscall finishes. void hleReSchedule(const char *reason); // Reschedule and go into a callback processing state after the syscall finishes.