From b172f0d770486d4367fbea22906a5e908ef621e8 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 2 Jan 2018 22:24:12 -0500 Subject: arm: Remove SkyEye/Dyncom code that is ARMv6-only. --- src/core/hle/kernel/thread.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core/hle/kernel/thread.cpp') diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 1588cfc7e..9132d1d77 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -11,7 +11,6 @@ #include "common/math_util.h" #include "common/thread_queue_list.h" #include "core/arm/arm_interface.h" -#include "core/arm/skyeye_common/armstate.h" #include "core/core.h" #include "core/core_timing.h" #include "core/hle/kernel/errors.h" @@ -365,7 +364,8 @@ static void ResetThreadContext(ARM_Interface::ThreadContext& context, VAddr stac context.cpu_registers[0] = arg; context.pc = entry_point; context.sp = stack_top; - context.cpsr = USER32MODE; + context.cpsr = 0; + context.fpscr = 0; } ResultVal> Thread::Create(std::string name, VAddr entry_point, u32 priority, @@ -504,8 +504,6 @@ SharedPtr SetupMainThread(VAddr entry_point, u32 priority, // Register 1 must be a handle to the main thread thread->guest_handle = Kernel::g_handle_table.Create(thread).Unwrap();; thread->context.cpu_registers[1] = thread->guest_handle; - thread->context.fpscr = - FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010 // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires thread->ResumeFromWait(); -- cgit v1.2.3