More fixes as per PR feedback.
This commit is contained in:
parent
a6ecb3c913
commit
039fb95f80
3 changed files with 16 additions and 14 deletions
|
@ -215,8 +215,8 @@ static void FpuWrite(std::size_t id, u64 val, Kernel::Thread* thread = nullptr)
|
|||
}
|
||||
|
||||
if (id >= D0_REGISTER && id < FPSCR_REGISTER) {
|
||||
thread->context->SetFpuRegister(2 * (id - D0_REGISTER), (u32)val);
|
||||
thread->context->SetFpuRegister(2 * (id - D0_REGISTER) + 1, val >> 32);
|
||||
thread->context->SetFpuRegister(2 * (id - D0_REGISTER), static_cast<u32>(val));
|
||||
thread->context->SetFpuRegister(2 * (id - D0_REGISTER) + 1, static_cast<u32>(val >> 32));
|
||||
} else if (id == FPSCR_REGISTER) {
|
||||
return thread->context->SetFpscr(static_cast<u32>(val));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue