AnsweredAssumed Answered

How can I use dataflow exception using SPEFSCR?

Question asked by 민 지혜 on Feb 19, 2018
Latest reply on Feb 21, 2018 by Lukas Zadrapa

Hi, dear.

I'm using mpc5773 and have a question about SPEFSCR.

For using under, divide 0, invalid exception, I made some bits to 1. -> set SPEFSCR value : 0x0000 0039

and made Interrupt is occured when an exception is occured.

But, when Interrupt is occured, back to address which stored in SRR0. So,  Proceed again the operation that caused the exception. and again and again.

I try to update SRR0 value and it can, but SRR0 value is return to original value after SRR0 update.

e_lmvsrrw 0x8(r1) make SRR0 value is return to original value.

as a result, I can't get out of the exception. Could you give me a tip or some help?

(I already make some flags(FINVS, FDBZS, FUNFS) clear when exception occured.)

Outcomes