Re: [Qemu-devel] MIPS interrupt handling

2006-05-03 Thread Thiemo Seufer
Fabrice Bellard wrote: > Thiemo Seufer wrote: > >Fabrice Bellard wrote: > > > >>I just looked at the MIPS file target-mips/op_helper.c and I don't > >>understand why IRQs need to be handled in op_helper.c:do_mtc0() with reg > >>= 12. > > > > > >Register 12 is the cp0_status register, it defines w

Re: [Qemu-devel] MIPS interrupt handling

2006-05-03 Thread Fabrice Bellard
Thiemo Seufer wrote: Fabrice Bellard wrote: I just looked at the MIPS file target-mips/op_helper.c and I don't understand why IRQs need to be handled in op_helper.c:do_mtc0() with reg = 12. Register 12 is the cp0_status register, it defines which interrupts are masked/enabled/disabled. Btw,

Re: [Qemu-devel] MIPS interrupt handling

2006-05-02 Thread Thiemo Seufer
Fabrice Bellard wrote: > I just looked at the MIPS file target-mips/op_helper.c and I don't > understand why IRQs need to be handled in op_helper.c:do_mtc0() with reg > = 12. Register 12 is the cp0_status register, it defines which interrupts are masked/enabled/disabled. Btw, I have a patch whic

[Qemu-devel] MIPS interrupt handling

2006-05-02 Thread Fabrice Bellard
I just looked at the MIPS file target-mips/op_helper.c and I don't understand why IRQs need to be handled in op_helper.c:do_mtc0() with reg = 12. IMHO, the corresponding code should be deleted because the TB is forced to terminate after mtc0 so that the IRQs can be handled in the main loop in c