mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-08 03:49:09 +01:00
HLE: Removed usnused EatCycles function.
This commit is contained in:
parent
862db811f0
commit
4620e2a741
3 changed files with 0 additions and 15 deletions
|
@ -40,10 +40,6 @@ void CallSVC(u32 opcode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EatCycles(u32 cycles) {
|
|
||||||
// TODO: ImplementMe
|
|
||||||
}
|
|
||||||
|
|
||||||
void Reschedule(const char *reason) {
|
void Reschedule(const char *reason) {
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
_dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason.");
|
_dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason.");
|
||||||
|
|
|
@ -37,8 +37,6 @@ void RegisterModule(std::string name, int num_functions, const FunctionDef *func
|
||||||
|
|
||||||
void CallSVC(u32 opcode);
|
void CallSVC(u32 opcode);
|
||||||
|
|
||||||
void EatCycles(u32 cycles);
|
|
||||||
|
|
||||||
void Reschedule(const char *reason);
|
void Reschedule(const char *reason);
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
|
@ -337,15 +337,8 @@ Handle CreateThread(const char* name, u32 entry_point, s32 priority, u32 arg, s3
|
||||||
stack_size);
|
stack_size);
|
||||||
|
|
||||||
ResetThread(t, arg, 0);
|
ResetThread(t, arg, 0);
|
||||||
|
|
||||||
HLE::EatCycles(32000);
|
|
||||||
|
|
||||||
CallThread(t);
|
CallThread(t);
|
||||||
|
|
||||||
// This won't schedule to the new thread, but it may to one woken from eating cycles.
|
|
||||||
// Technically, this should not eat all at once, and reschedule in the middle, but that's hard.
|
|
||||||
//HLE::Reschedule(__func__);
|
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -389,8 +382,6 @@ Result SetThreadPriority(Handle handle, s32 priority) {
|
||||||
g_thread_ready_queue.push_back(thread->current_priority, handle);
|
g_thread_ready_queue.push_back(thread->current_priority, handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
HLE::EatCycles(450);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue