From e96e2044a14340bf1e612b7f046093495c10a06f Mon Sep 17 00:00:00 2001 From: ths Date: Sun, 2 Dec 2007 06:18:24 +0000 Subject: SH4: system emulator interrupt update, by Magnus Damm. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3762 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/sh_intc.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hw/sh_intc.h') diff --git a/hw/sh_intc.h b/hw/sh_intc.h index 991e991..d22a4a2 100644 --- a/hw/sh_intc.h +++ b/hw/sh_intc.h @@ -35,9 +35,11 @@ struct intc_source { unsigned short vect; intc_enum next_enum_id; - int asserted; + int asserted; /* emulates the interrupt signal line from device to intc */ int enable_count; int enable_max; + int pending; /* emulates the result of signal and masking */ + struct intc_desc *parent; }; struct intc_desc { @@ -49,9 +51,13 @@ struct intc_desc { int nr_prio_regs; int iomemtype; + int pending; /* number of interrupt sources that has pending set */ }; +int sh_intc_get_pending_vector(struct intc_desc *desc, int imask); struct intc_source *sh_intc_source(struct intc_desc *desc, intc_enum id); +void sh_intc_toggle_source(struct intc_source *source, + int enable_adj, int assert_adj); void sh_intc_register_sources(struct intc_desc *desc, struct intc_vect *vectors, -- cgit v1.1