Kernel: Make Processor::clean_fpu_state() static

This function returns the same identical FPU state for all CPU's, so
there's no point requiring a Processor instance.
This commit is contained in:
Andreas Kling 2021-08-22 15:35:54 +02:00
commit 05e1b196e9
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00
2 changed files with 2 additions and 5 deletions

View file

@ -1231,7 +1231,7 @@ RefPtr<Thread> Thread::from_tid(ThreadID tid)
void Thread::reset_fpu_state()
{
memcpy(&m_fpu_state, &Processor::current().clean_fpu_state(), sizeof(FPUState));
memcpy(&m_fpu_state, &Processor::clean_fpu_state(), sizeof(FPUState));
}
bool Thread::should_be_stopped() const