diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-18 14:13:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 14:13:57 -0500 |
commit | 39262921f274ca81f98c8504de36378e20a985a6 (patch) | |
tree | 870bc2439c66548668fa28161b04580ac40495fc /src | |
parent | 5bae002aaa756c86abb64943124d401c5e76d39c (diff) | |
parent | eef6ce79a9c06f89be2760d7156eb44c063bab63 (diff) |
Merge pull request #1913 from MerryMage/default-fpcr
kernel/thread: Set default fpcr
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 3 |
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, |