Invalid Opcode handling
Posted: Thu Jan 29, 2004 8:07 am
I have a working exception handler for Invalid Opcode (I tried it on bochs' level 3 cpu and works good on handling error caused by the use of "rdtsc").
I wanted to catch invalid opcode exceptions brought up by the use of FPU instruction when no FPU is currently present. This way, I (successfully) compiled bochs without support of the FPU, but when it comes to execute this :
Bochs prints out the following
and doesn't call neither the invalid opcode exception handler nor the fpu error exception handler.
My question is the following : what will happen on a real computer with no FPU at all ?
Will it hang on the invalid opcode exception handler or will it go further ?
I wanted to catch invalid opcode exceptions brought up by the use of FPU instruction when no FPU is currently present. This way, I (successfully) compiled bochs without support of the FPU, but when it comes to execute this :
Code: Select all
wait
fninit
Code: Select all
[tick=(00001205525)][eip=(001019ab)][type=(i)][dev=[CPU ] FWAIT: requred FPU, use --enable-fpu
[tick=(00001205526)][eip=(001019ad)][type=(i)][dev=[CPU ] FNINIT: required FPU, configure --enable-fpu
My question is the following : what will happen on a real computer with no FPU at all ?
Will it hang on the invalid opcode exception handler or will it go further ?