summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-18 20:13:57 +0100
committerGitHub <noreply@github.com>2018-12-18 20:13:57 +0100
commit39262921f274ca81f98c8504de36378e20a985a6 (patch)
tree870bc2439c66548668fa28161b04580ac40495fc /src/core/hle
parentMerge pull request #1918 from MerryMage/cntfrq (diff)
parentkernel/thread: Set default fpcr (diff)
downloadyuzu-39262921f274ca81f98c8504de36378e20a985a6.tar
yuzu-39262921f274ca81f98c8504de36378e20a985a6.tar.gz
yuzu-39262921f274ca81f98c8504de36378e20a985a6.tar.bz2
yuzu-39262921f274ca81f98c8504de36378e20a985a6.tar.lz
yuzu-39262921f274ca81f98c8504de36378e20a985a6.tar.xz
yuzu-39262921f274ca81f98c8504de36378e20a985a6.tar.zst
yuzu-39262921f274ca81f98c8504de36378e20a985a6.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 4ffb76818..63f8923fd 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -158,6 +158,9 @@ static void ResetThreadContext(Core::ARM_Interface::ThreadContext& context, VAdd
context.cpu_registers[0] = arg;
context.pc = entry_point;
context.sp = stack_top;
+ // TODO(merry): Perform a hardware test to determine the below value.
+ // AHP = 0, DN = 1, FTZ = 1, RMode = Round towards zero
+ context.fpcr = 0x03C00000;
}
ResultVal<SharedPtr<Thread>> Thread::Create(KernelCore& kernel, std::string name, VAddr entry_point,