when does do_fpe() get called? (or when does FPE happen?)
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
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 insidedo_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
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 insidedo_fpe()routine.Checkout the various flags in $fcr31. Whenever one of the enabled exceptions is triggered we get to
handle_fpeviado_fpe. In addition the unimplemented exception can also result in invocation ofdo_fpe.
So it seems safe to assume FPU should have been enabled when we get here, right?
Jun
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 insidedo_fpe()routine.Checkout the various flags in $fcr31. Whenever one of the enabled exceptions is triggered we get to
handle_fpeviado_fpe. In addition the unimplemented exception can also result in invocation ofdo_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