summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-06-07 05:34:49 +0200
committerbunnei <ericbunnie@gmail.com>2014-06-13 15:51:16 +0200
commit4620e2a741735a18f3a331037f86b3aae0f9fc6d (patch)
tree3c6c60c8ab071c6455bc8c1c61c4f828007c1f95
parentSVC: Cleaned up function wrappers to pass in correct argument types. (diff)
downloadyuzu-4620e2a741735a18f3a331037f86b3aae0f9fc6d.tar
yuzu-4620e2a741735a18f3a331037f86b3aae0f9fc6d.tar.gz
yuzu-4620e2a741735a18f3a331037f86b3aae0f9fc6d.tar.bz2
yuzu-4620e2a741735a18f3a331037f86b3aae0f9fc6d.tar.lz
yuzu-4620e2a741735a18f3a331037f86b3aae0f9fc6d.tar.xz
yuzu-4620e2a741735a18f3a331037f86b3aae0f9fc6d.tar.zst
yuzu-4620e2a741735a18f3a331037f86b3aae0f9fc6d.zip
-rw-r--r--src/core/hle/hle.cpp4
-rw-r--r--src/core/hle/hle.h2
-rw-r--r--src/core/hle/kernel/thread.cpp9
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) {
}
}
-void EatCycles(u32 cycles) {
- // TODO: ImplementMe
-}
-
void Reschedule(const char *reason) {
#ifdef _DEBUG
_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
void CallSVC(u32 opcode);
-void EatCycles(u32 cycles);
-
void Reschedule(const char *reason);
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
stack_size);
ResetThread(t, arg, 0);
-
- HLE::EatCycles(32000);
-
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;
}
@@ -389,8 +382,6 @@ Result SetThreadPriority(Handle handle, s32 priority) {
g_thread_ready_queue.push_back(thread->current_priority, handle);
}
- HLE::EatCycles(450);
-
return 0;
}