Reset FPU state in SignalToRunError for SIGFPE, fixes tw12214 failure

git-svn-id: trunk@29552 -
This commit is contained in:
pierre 2015-01-26 09:01:19 +00:00
parent 3a9abf75a9
commit 817555cd6e

View File

@ -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