From 96e2fc41a94f190994dfb56d47d609a658bfe67c Mon Sep 17 00:00:00 2001 From: aurel32 Date: Fri, 21 Nov 2008 21:06:42 +0000 Subject: SH4: Use qemu_irq in timer emulation. * hw/sh.h (tmu012_init): Accept qemu_irq, not intc_source. * hw/sh7750.c (sh7750_init): Pass qemu_irq to tmu012_init. * hw/sh_intc.c (sh_intc_set_irq): New. (sh_intc_init): Allocate irqs. * hw/sh_intc.h (struct intc_desc): New field irqs. * hw/sh_timer.c (sh_timer_state): Use qemu_irq, not intc_source. (sh_timer_update): Use qemu_set_irq, not sh_intc_toggle_source. (sh_timer_init, tmu012_init): Adjust. (Vladimir Prus) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5768 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/sh_intc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hw/sh_intc.h') diff --git a/hw/sh_intc.h b/hw/sh_intc.h index d22a4a2a4c..4362dcf102 100644 --- a/hw/sh_intc.h +++ b/hw/sh_intc.h @@ -1,6 +1,9 @@ #ifndef __SH_INTC_H__ #define __SH_INTC_H__ +#include "qemu-common.h" +#include "irq.h" + typedef unsigned char intc_enum; struct intc_vect { @@ -43,13 +46,13 @@ struct intc_source { }; struct intc_desc { + qemu_irq *irqs; struct intc_source *sources; int nr_sources; struct intc_mask_reg *mask_regs; int nr_mask_regs; struct intc_prio_reg *prio_regs; int nr_prio_regs; - int iomemtype; int pending; /* number of interrupt sources that has pending set */ }; -- cgit 1.4.1