summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-02 22:24:12 -0500
committerGravatar bunnei2018-01-02 22:24:12 -0500
commitb172f0d770486d4367fbea22906a5e908ef621e8 (patch)
tree6a564c23ed8f52c16c50942803f4a69fd0047f6c /src/core/hle/kernel/thread.cpp
parentvm_manager: Use a more reasonable MAX_ADDRESS size. (diff)
downloadyuzu-b172f0d770486d4367fbea22906a5e908ef621e8.tar.gz
yuzu-b172f0d770486d4367fbea22906a5e908ef621e8.tar.xz
yuzu-b172f0d770486d4367fbea22906a5e908ef621e8.zip
arm: Remove SkyEye/Dyncom code that is ARMv6-only.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp6
1 files changed, 2 insertions, 4 deletions
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 @@
11#include "common/math_util.h" 11#include "common/math_util.h"
12#include "common/thread_queue_list.h" 12#include "common/thread_queue_list.h"
13#include "core/arm/arm_interface.h" 13#include "core/arm/arm_interface.h"
14#include "core/arm/skyeye_common/armstate.h"
15#include "core/core.h" 14#include "core/core.h"
16#include "core/core_timing.h" 15#include "core/core_timing.h"
17#include "core/hle/kernel/errors.h" 16#include "core/hle/kernel/errors.h"
@@ -365,7 +364,8 @@ static void ResetThreadContext(ARM_Interface::ThreadContext& context, VAddr stac
365 context.cpu_registers[0] = arg; 364 context.cpu_registers[0] = arg;
366 context.pc = entry_point; 365 context.pc = entry_point;
367 context.sp = stack_top; 366 context.sp = stack_top;
368 context.cpsr = USER32MODE; 367 context.cpsr = 0;
368 context.fpscr = 0;
369} 369}
370 370
371ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point, u32 priority, 371ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point, u32 priority,
@@ -504,8 +504,6 @@ SharedPtr<Thread> SetupMainThread(VAddr entry_point, u32 priority,
504 // Register 1 must be a handle to the main thread 504 // Register 1 must be a handle to the main thread
505 thread->guest_handle = Kernel::g_handle_table.Create(thread).Unwrap();; 505 thread->guest_handle = Kernel::g_handle_table.Create(thread).Unwrap();;
506 thread->context.cpu_registers[1] = thread->guest_handle; 506 thread->context.cpu_registers[1] = thread->guest_handle;
507 thread->context.fpscr =
508 FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010
509 507
510 // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires 508 // Threads by default are dormant, wake up the main thread so it runs when the scheduler fires
511 thread->ResumeFromWait(); 509 thread->ResumeFromWait();