mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 20:49:19 +02:00
+ also init Default8087CW in DetectFPU
git-svn-id: trunk@26201 -
This commit is contained in:
parent
180ddf2ddd
commit
d0a7522e1f
@ -216,7 +216,7 @@ const
|
||||
fpucw : word = $1300 or FPU_StackUnderflow or FPU_Underflow or FPU_Denormal;
|
||||
}
|
||||
|
||||
{ Detects the FPU and initializes the Test8087 variable:
|
||||
{ Detects the FPU and initializes the Test8087 variable (and Default8087CW):
|
||||
0 = NO FPU
|
||||
1 = 8087
|
||||
2 = 80287
|
||||
@ -262,6 +262,10 @@ procedure DetectFPU;
|
||||
@@Done:
|
||||
mov Test8087, bl
|
||||
end ['AX','BX'];
|
||||
if Test8087<=2 then
|
||||
Default8087CW:=$1330
|
||||
else
|
||||
Default8087CW:=$1332;
|
||||
end;
|
||||
|
||||
{$define FPC_SYSTEM_HAS_SYSINITFPU}
|
||||
|
Loading…
Reference in New Issue
Block a user