mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 21:48:35 +02:00
Reset FPU state in SignalToRunError for SIGFPE, fixes tw12214 failure
git-svn-id: trunk@29552 -
This commit is contained in:
parent
3a9abf75a9
commit
817555cd6e
@ -61,7 +61,15 @@ begin
|
||||
res:=207;
|
||||
end;
|
||||
with sigcontext^.uc_mcontext.fpregs.fpchip_state do
|
||||
status:=status and not FPU_ExceptionMask;
|
||||
begin
|
||||
status:=status and not FPU_ExceptionMask;
|
||||
{ Control word is index 0 }
|
||||
state[0]:=Default8087CW;
|
||||
{ Status word is also index 1 }
|
||||
state[1]:=status;
|
||||
{ Tag word is index 2 }
|
||||
state[2]:=$ffff;
|
||||
end;
|
||||
end;
|
||||
SIGILL:
|
||||
if sse_check then
|
||||
|
Loading…
Reference in New Issue
Block a user