FPU's on an i386+

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Dangamoose

FPU's on an i386+

Post by Dangamoose »

This might be seen as a dumb question but, do all 386+'s have an onboard FPU built in as standard?
I ask because in cpuid an option is available to set whether an FPU exists or not and i don't want to assume it does when it doesnt and end up with instruction exceptions.
Cheers.

Thanks in advance.
Dangamoose.
Jamethiel

RE:FPU's on an i386+

Post by Jamethiel »

CPUID having a bit to see if an FPU exists is a cruel joke.

The 386 always had to have an external coprocessor.

The 486sx didn't have an on-chip coprocessor, the 486dx did.

All Pentium and better chips have built-in coprocessors (by now a misnomer).

CPUID was introduced on the Pentium and late-model 486dx chips.

As far as I know, if your CPU supports CPUID then it has a math coprocessor (I am willing to be convinced otherwise, but this is what I believe at present).

Hope this helps.

--Jamethiel
Post Reply