summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-12 18:06:51 +0200
committerGitHub <noreply@github.com>2018-10-12 18:06:51 +0200
commitf9d03b1d41f5002a17a41082c6da7e96b17e0b1f (patch)
treed5ce8135c057a827ce4425737b96f18fa97d7d65 /src/core
parentMerge pull request #1479 from ogniK5377/nmap-revamped (diff)
parentthread: Remove unnecessary memset from ResetThreadContext() (diff)
downloadyuzu-f9d03b1d41f5002a17a41082c6da7e96b17e0b1f.tar
yuzu-f9d03b1d41f5002a17a41082c6da7e96b17e0b1f.tar.gz
yuzu-f9d03b1d41f5002a17a41082c6da7e96b17e0b1f.tar.bz2
yuzu-f9d03b1d41f5002a17a41082c6da7e96b17e0b1f.tar.lz
yuzu-f9d03b1d41f5002a17a41082c6da7e96b17e0b1f.tar.xz
yuzu-f9d03b1d41f5002a17a41082c6da7e96b17e0b1f.tar.zst
yuzu-f9d03b1d41f5002a17a41082c6da7e96b17e0b1f.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/thread.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 33aed8c23..352ce1725 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -183,13 +183,10 @@ void Thread::ResumeFromWait() {
*/
static void ResetThreadContext(Core::ARM_Interface::ThreadContext& context, VAddr stack_top,
VAddr entry_point, u64 arg) {
- memset(&context, 0, sizeof(Core::ARM_Interface::ThreadContext));
-
+ context = {};
context.cpu_registers[0] = arg;
context.pc = entry_point;
context.sp = stack_top;
- context.pstate = 0;
- context.fpcr = 0;
}
ResultVal<SharedPtr<Thread>> Thread::Create(KernelCore& kernel, std::string name, VAddr entry_point,