diff options
author | bunnei <bunneidev@gmail.com> | 2020-03-21 03:39:07 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-04-17 06:11:50 +0200 |
commit | f2676efe23f03c1755715d049d53e26d1dac1864 (patch) | |
tree | afeec2b9eb19e7d9d3a5bf8b6f9d70b3da0655cb /src | |
parent | arm_interface: Ensure ThreadContext is zero'd out. (diff) | |
download | yuzu-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')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 2 |
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; |