florian преди 3 години
родител
ревизия
be4a317cb4
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      rtl/darwin/aarch64/sig_cpu.inc
  2. 1 1
      rtl/darwin/aarch64/sighnd.inc

+ 1 - 1
rtl/darwin/aarch64/sig_cpu.inc

@@ -41,7 +41,7 @@
      mcontext_t = record
           __es : __darwin_arm_exception_state64;
           __ss : __darwin_arm_thread_state64;
-          __fs : __darwin_arm_neon_state64;
+          __ns : __darwin_arm_neon_state64;
        end;
 
 

+ 1 - 1
rtl/darwin/aarch64/sighnd.inc

@@ -44,7 +44,7 @@ begin
         res:=233;
   end;
   { right now, macOS generates SIGILL signals for fpu exceptions, so always clear the fpu exceptions }
-  SigContext^.uc_mcontext^.__fs.__fpsr:=SigContext^.uc_mcontext^.__fs.__fpsr and not(fpu_exception_mask shr fpu_exception_mask_to_status_mask_shift);
+  SigContext^.uc_mcontext^.__ns.__fpsr:=SigContext^.uc_mcontext^.__ns.__fpsr and not(fpu_exception_mask shr fpu_exception_mask_to_status_mask_shift);
   {$ifdef FPC_USE_SIGPROCMASK}
    reenable_signal(sig);
   {$endif }