This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[m32c sim] clear pending interrupts
- From: DJ Delorie <dj at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Wed, 1 Oct 2008 16:44:47 -0400
- Subject: [m32c sim] clear pending interrupts
Committed.
2008-10-01 DJ Delorie <dj@redhat.com>
* int.c (trigger_peripheral_interrupt): Clear interrupt pending
bit when peripheral interrupts are serviced.
Index: sim/m32c/int.c
===================================================================
RCS file: /cvs/src/src/sim/m32c/int.c,v
retrieving revision 1.5
diff -p -U3 -r1.5 sim/m32c/int.c
--- sim/m32c/int.c 6 Jun 2008 19:18:14 -0000 1.5
+++ sim/m32c/int.c 1 Oct 2008 20:43:53 -0000
@@ -72,4 +72,5 @@ trigger_peripheral_interrupt (int vector
int addr = get_reg (intb) + vector * 4;
trigger_interrupt (addr, 1);
put_reg (flags, (get_reg (flags) & 0x8fff) | ((old_ic & 7) << 12));
+ mem_put_qi (icaddr, old_ic & ~ 0x08);
}