diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/hle.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/hle.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 9 |
3 files changed, 0 insertions, 15 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index dde6d0f40..53cda4a61 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -40,10 +40,6 @@ void CallSVC(u32 opcode) { | |||
| 40 | } | 40 | } |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | void EatCycles(u32 cycles) { | ||
| 44 | // TODO: ImplementMe | ||
| 45 | } | ||
| 46 | |||
| 47 | void Reschedule(const char *reason) { | 43 | void Reschedule(const char *reason) { |
| 48 | #ifdef _DEBUG | 44 | #ifdef _DEBUG |
| 49 | _dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason."); | 45 | _dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason."); |
diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h index 8a59020c2..0397da5d9 100644 --- a/src/core/hle/hle.h +++ b/src/core/hle/hle.h | |||
| @@ -37,8 +37,6 @@ void RegisterModule(std::string name, int num_functions, const FunctionDef *func | |||
| 37 | 37 | ||
| 38 | void CallSVC(u32 opcode); | 38 | void CallSVC(u32 opcode); |
| 39 | 39 | ||
| 40 | void EatCycles(u32 cycles); | ||
| 41 | |||
| 42 | void Reschedule(const char *reason); | 40 | void Reschedule(const char *reason); |
| 43 | 41 | ||
| 44 | void Init(); | 42 | void Init(); |
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index cb5b89379..ebe308a93 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -337,15 +337,8 @@ Handle CreateThread(const char* name, u32 entry_point, s32 priority, u32 arg, s3 | |||
| 337 | stack_size); | 337 | stack_size); |
| 338 | 338 | ||
| 339 | ResetThread(t, arg, 0); | 339 | ResetThread(t, arg, 0); |
| 340 | |||
| 341 | HLE::EatCycles(32000); | ||
| 342 | |||
| 343 | CallThread(t); | 340 | CallThread(t); |
| 344 | 341 | ||
| 345 | // This won't schedule to the new thread, but it may to one woken from eating cycles. | ||
| 346 | // Technically, this should not eat all at once, and reschedule in the middle, but that's hard. | ||
| 347 | //HLE::Reschedule(__func__); | ||
| 348 | |||
| 349 | return handle; | 342 | return handle; |
| 350 | } | 343 | } |
| 351 | 344 | ||
| @@ -389,8 +382,6 @@ Result SetThreadPriority(Handle handle, s32 priority) { | |||
| 389 | g_thread_ready_queue.push_back(thread->current_priority, handle); | 382 | g_thread_ready_queue.push_back(thread->current_priority, handle); |
| 390 | } | 383 | } |
| 391 | 384 | ||
| 392 | HLE::EatCycles(450); | ||
| 393 | |||
| 394 | return 0; | 385 | return 0; |
| 395 | } | 386 | } |
| 396 | 387 | ||