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 | 4e57c35bdc297cfc881b7bcf6780c7cfccd6ec7d (patch) | |
| tree | 870bc2439c66548668fa28161b04580ac40495fc /src | |
| parent | 55f489f17ec0d9b7e7fec695a1c9e3920e349107 (diff) | |
| parent | 2a92de65fa343a0eb8481336ff0606e6a048bba3 (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 4ffb768183..63f8923fd9 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, |
