Skip to contentSkip to conversation

when does do_fpe() get called? (or when does FPE happen?)

DISCUSSION Jun Sun 2 participants 4 messages Jan 28, 2003 MIPS

lore
Share & tools
lore

Jun Sun

author
#0 lore raw

Can someone enlighten me a little? I am trying
to figure out what the FPU state should be (or can be) when we are inside do_fpe() routine.

Jun

#1 lore raw
Quoted 3 lines · Jun Sun

Can someone enlighten me a little? I am trying
to figure out what the FPU state should be (or can be) when we are inside do_fpe() routine.

Checkout the various flags in $fcr31. Whenever one of the enabled exceptions is triggered we get to handle_fpe via do_fpe. In addition the unimplemented exception can also result in invocation of do_fpe.

Ralf

author
#2 lore raw
Quoted 10 lines · Ralf Baechle
Quoted 3 lines · Jun Sun

Can someone enlighten me a little? I am trying
to figure out what the FPU state should be (or can be) when we are inside do_fpe() routine.

Checkout the various flags in $fcr31. Whenever one of the enabled exceptions is triggered we get to handle_fpe via do_fpe. In addition the unimplemented exception can also result in invocation of do_fpe.

So it seems safe to assume FPU should have been enabled when we get here, right?

Jun

#3 lore raw
Quoted 11 lines · Jun Sun
Quoted 8 lines
Quoted 3 lines

Can someone enlighten me a little? I am trying
to figure out what the FPU state should be (or can be) when we are inside do_fpe() routine.

Checkout the various flags in $fcr31. Whenever one of the enabled exceptions is triggered we get to handle_fpe via do_fpe. In addition the unimplemented exception can also result in invocation of do_fpe.

So it seems safe to assume FPU should have been enabled when we get here, right?

Yes, otherwise we'd get a coprocessur unusable exception.

Ralf