* use SysResetFPU instead of inline assembler

git-svn-id: trunk@4545 -
This commit is contained in:
florian 2006-09-03 20:35:16 +00:00
parent bf1c390027
commit 8573d3679e

View File

@ -805,10 +805,8 @@ begin
if IsConsole then if IsConsole then
writeln(stderr,'In JumpToHandleErrorFrame error=',error); writeln(stderr,'In JumpToHandleErrorFrame error=',error);
{$endif SYSTEMEXCEPTIONDEBUG} {$endif SYSTEMEXCEPTIONDEBUG}
if resetFPU[exceptLevel] then asm if resetFPU[exceptLevel] then
fninit SysResetFPU;
fldcw fpucw
end;
{ build a fake stack } { build a fake stack }
asm asm
{$ifdef REGCALL} {$ifdef REGCALL}
@ -1002,11 +1000,7 @@ procedure fpc_cpucodeinit;
sse_check:=false; sse_check:=false;
has_sse_support:=sse_support; has_sse_support:=sse_support;
has_mmx_support:=mmx_support; has_mmx_support:=mmx_support;
{ reset FPU } SysResetFPU;
asm
fninit
fldcw fpucw
end;
setup_fastmove; setup_fastmove;
end; end;