Browse Source
Merge pull request #3725 from MerryMage/fpcr
thread: FPCR.FZ is likely not 1 (and FPCR.RMode = TieAway and FPCR.DN = 0)
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/core/hle/kernel/thread.cpp
|
|
@ -150,8 +150,7 @@ static void ResetThreadContext64(Core::ARM_Interface::ThreadContext64& context, |
|
|
context.pc = entry_point; |
|
|
context.pc = entry_point; |
|
|
context.sp = stack_top; |
|
|
context.sp = stack_top; |
|
|
// TODO(merry): Perform a hardware test to determine the below value.
|
|
|
// TODO(merry): Perform a hardware test to determine the below value.
|
|
|
// AHP = 0, DN = 1, FTZ = 1, RMode = Round towards zero
|
|
|
|
|
|
context.fpcr = 0x03C00000; |
|
|
|
|
|
|
|
|
context.fpcr = 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ResultVal<std::shared_ptr<Thread>> Thread::Create(KernelCore& kernel, std::string name, |
|
|
ResultVal<std::shared_ptr<Thread>> Thread::Create(KernelCore& kernel, std::string name, |
|
|
|