+ SysResetFPU for Aarch64

This commit is contained in:
florian 2024-12-05 22:03:13 +01:00
parent a1a0c0e9ba
commit 072f1bfb29

View File

@ -157,6 +157,15 @@ procedure SysInitFPU;
end;
{$define FPC_SYSTEM_HAS_SYSRESETFPU}
Procedure SysResetFPU;{$ifdef SYSTEMINLINE}inline;{$endif}
begin
softfloat_exception_flags:=[];
{ clear all "exception happened" flags we care about}
setfpsr(getfpsr and not(fpu_exception_mask shr fpu_exception_mask_to_status_mask_shift));
end;
{****************************************************************************
Move / Fill
****************************************************************************}