VERY experimental Nintendo Switch 2 emulator
C++
thread: Remove unnecessary memset from ResetThreadContext()
Lioncashb4690a33c0c3
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 33aed8c237..352ce17255 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,