Hi everyone, This patch updates the interrupt and exception code for the sh4 system emulator. Together with the delay slot patch posted yesterday this patch implements working interrupts for the sh4 system emulator. There are unfortunately no sources that actually hook up to the interrupt controller yet - will post a patch for sh_timer in the near future. Changes included in this patch:
- sh_intc now fully emulates intc registers and deliver interrupts - do_interrupt() is updated to hook in sh_intc interrupts - code to call do_interrupt() for sh4 is added in cpu-exec.c - exception updates for do_interrupt() - masking etc - trapa instruction immediate data fix cpu-exec.c | 5 +- hw/sh7750.c | 2 hw/sh_intc.c | 123 +++++++++++++++++++++++++++++++++++++++------------ hw/sh_intc.h | 8 ++- target-sh4/cpu.h | 1 target-sh4/helper.c | 75 ++++++++++++++++++++++++------- target-sh4/op.c | 2 7 files changed, 169 insertions(+), 47 deletions(-) Please apply. / magnus
qemu-cvs-20071129-sh-irq.patch
Description: Binary data