aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c/int.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-10-01 20:44:21 +0000
committerDJ Delorie <dj@redhat.com>2008-10-01 20:44:21 +0000
commitbec7fb47e47a91f7d2ea31044220381b44854d36 (patch)
tree00e9d1e26085421ff62eefeaab327927cc9ee935 /sim/m32c/int.c
parentbd2e94cec8bb79e117389f7800ccd6b65407f5df (diff)
downloadgdb-bec7fb47e47a91f7d2ea31044220381b44854d36.zip
gdb-bec7fb47e47a91f7d2ea31044220381b44854d36.tar.gz
gdb-bec7fb47e47a91f7d2ea31044220381b44854d36.tar.bz2
* int.c (trigger_peripheral_interrupt): Clear interrupt pending
bit when peripheral interrupts are serviced.
Diffstat (limited to 'sim/m32c/int.c')
-rw-r--r--sim/m32c/int.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/m32c/int.c b/sim/m32c/int.c
index 5556a12..ac7ac97 100644
--- a/sim/m32c/int.c
+++ b/sim/m32c/int.c
@@ -72,4 +72,5 @@ trigger_peripheral_interrupt (int vector, int icaddr)
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);
}