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