summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-03-21 03:39:07 +0100
committerbunnei <bunneidev@gmail.com>2020-04-17 06:11:50 +0200
commitf2676efe23f03c1755715d049d53e26d1dac1864 (patch)
treeafeec2b9eb19e7d9d3a5bf8b6f9d70b3da0655cb /src/core
parentarm_interface: Ensure ThreadContext is zero'd out. (diff)
downloadyuzu-f2676efe23f03c1755715d049d53e26d1dac1864.tar
yuzu-f2676efe23f03c1755715d049d53e26d1dac1864.tar.gz
yuzu-f2676efe23f03c1755715d049d53e26d1dac1864.tar.bz2
yuzu-f2676efe23f03c1755715d049d53e26d1dac1864.tar.lz
yuzu-f2676efe23f03c1755715d049d53e26d1dac1864.tar.xz
yuzu-f2676efe23f03c1755715d049d53e26d1dac1864.tar.zst
yuzu-f2676efe23f03c1755715d049d53e26d1dac1864.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/process.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index edc414d69..ddbd75b8d 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -42,6 +42,8 @@ void SetupMainThread(Process& owner_process, KernelCore& kernel, u32 priority) {
// Register 1 must be a handle to the main thread
const Handle thread_handle = owner_process.GetHandleTable().Create(thread).Unwrap();
+ thread->GetContext32().cpu_registers[0] = 0;
+ thread->GetContext64().cpu_registers[0] = 0;
thread->GetContext32().cpu_registers[1] = thread_handle;
thread->GetContext64().cpu_registers[1] = thread_handle;