diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-18 20:13:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 20:13:57 +0100 |
commit | 39262921f274ca81f98c8504de36378e20a985a6 (patch) | |
tree | 870bc2439c66548668fa28161b04580ac40495fc | |
parent | Merge pull request #1918 from MerryMage/cntfrq (diff) | |
parent | kernel/thread: Set default fpcr (diff) | |
download | yuzu-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 |
-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, |