summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-12 16:57:28 +0200
committerLioncash <mathew1800@gmail.com>2018-10-12 16:57:31 +0200
commitb492d43e63a80d926ca0bb35577761cabee2d13c (patch)
tree16bdfd11f80396ae0f92dec0d5fde6c6a902ba17 /src/core/hle
parentMerge pull request #1474 from ogniK5377/hwopus-decodeinterleavedwithperformance (diff)
downloadyuzu-b492d43e63a80d926ca0bb35577761cabee2d13c.tar
yuzu-b492d43e63a80d926ca0bb35577761cabee2d13c.tar.gz
yuzu-b492d43e63a80d926ca0bb35577761cabee2d13c.tar.bz2
yuzu-b492d43e63a80d926ca0bb35577761cabee2d13c.tar.lz
yuzu-b492d43e63a80d926ca0bb35577761cabee2d13c.tar.xz
yuzu-b492d43e63a80d926ca0bb35577761cabee2d13c.tar.zst
yuzu-b492d43e63a80d926ca0bb35577761cabee2d13c.zip
Diffstat (limited to 'src/core/hle')
-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,