HomeFreeBSD

arm: Fix initialization of VFP context

Description

arm: Fix initialization of VFP context

Make sure that pcb_vfpsaved is always initialized.
Create a vfp_new_thread helper that is heavily based on the arm64 logic.
While here remove un unnecessary assigment and add an assertion
to make sure that it's been properly initialized before we return
from a VFP exception.

Reported by: Mark Millard <marklmi@yahoo.com>
Tested by: Mark Millard <marklmi@yahoo.com>
Differential Revision: https://reviews.freebsd.org/D38698

Details

Provenance
kdAuthored on Feb 20 2023, 2:48 PM
Differential Revision
D38698: arm: Fix initialization of VFP context
Parents
rG4d2427f2c445: arm: Unbreak debugging programs that use FP instructions
Branches
Unknown
Tags
Unknown