Initial idle skip implementation
This commit is contained in:
@@ -179,6 +179,8 @@ class CPU {
|
||||
return scheduler;
|
||||
}
|
||||
|
||||
void addTicks(u64 ticks) { env.AddTicks(ticks); }
|
||||
|
||||
void clearCache() { jit->ClearCache(); }
|
||||
void runFrame();
|
||||
};
|
||||
@@ -95,6 +95,7 @@ public:
|
||||
void releaseMutex(Mutex* moo);
|
||||
void cancelTimer(Timer* timer);
|
||||
void signalTimer(Handle timerHandle, Timer* timer);
|
||||
u64 getWakeupTick(s64 ns);
|
||||
|
||||
// Wake up the thread with the highest priority out of all threads in the waitlist
|
||||
// Returns the index of the woken up thread
|
||||
|
||||
@@ -123,6 +123,7 @@ struct Thread {
|
||||
bool waitAll;
|
||||
// For WaitSynchronizationN: The "out" pointer
|
||||
u32 outPointer;
|
||||
u64 wakeupTick;
|
||||
|
||||
// Thread context used for switching between threads
|
||||
std::array<u32, 16> gprs;
|
||||
|
||||
Reference in New Issue
Block a user