Hello,
ralf@uni-koblenz.de wrote:
>
> On the R3000 c0_epc is a readonly register - as documented. That's ok
> because the R3000 uses a different way of handling exceptions. What you'll
> have to do to return from an exception is about as follows:
>
> restore c0_status
> move k1, sp ; needed later
> restore all gp registers
> restore hi/lo registers
> lw k0, PT_EPC(sp)
> jr k0
> rfe ; in the delay slot of the jr
>
> Ralf
Thanks for the info, Ralf. Either this is not mentioned in the IDT
manual or I have simply overlooked this. The Kane book would have saved
me a lot of headache, I assume. But then again, as a side effect,
debugging output via serial port is working now on my DS5000/133 :-).
regards,
Harald
|