summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-22 04:03:15 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-22 04:03:15 +0000
commit00c1bc8cb8afa90fba6fe8150bfbb38354d3d10f (patch)
treed28d4f56a25372509a51aba2a487a1d5fc3e7feb
parent906b9a2424b4dc1d912adea19a2d615060b4b799 (diff)
downloadgdb-00c1bc8cb8afa90fba6fe8150bfbb38354d3d10f.tar.gz
2003-06-21 Andrew Cagney <cagney@redhat.com>
* interrupts.c: Update copyright. (external_interrupt): Fix test for already pending interrupt. Problem found by Joshua LeVasseur.
-rw-r--r--sim/ppc/ChangeLog4
-rw-r--r--sim/ppc/interrupts.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 62920aca163..1324f81be0c 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,5 +1,9 @@
2003-06-21 Andrew Cagney <cagney@redhat.com>
+ * interrupts.c: Update copyright.
+ (external_interrupt): Fix test for already pending interrupt.
+ Problem found by Joshua LeVasseur.
+
* ppc-instructions: Add missing +8 line. Found by blofeldus at
yahoo.com.
diff --git a/sim/ppc/interrupts.c b/sim/ppc/interrupts.c
index 681e791af7e..dafb2b33144 100644
--- a/sim/ppc/interrupts.c
+++ b/sim/ppc/interrupts.c
@@ -1,6 +1,6 @@
/* This file is part of the program psim.
- Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
+ Copyright 1994, 1995, 1996, 1997, 2003 Andrew Cagney
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -522,7 +522,7 @@ external_interrupt(cpu *processor,
{
interrupts *ints = cpu_interrupts(processor);
if (is_asserted) {
- if (!ints->pending_interrupts & external_interrupt_pending) {
+ if (!(ints->pending_interrupts & external_interrupt_pending)) {
ints->pending_interrupts |= external_interrupt_pending;
if (cpu_registers(processor)->msr & msr_external_interrupt_enable)
schedule_hardware_interrupt_delivery(processor);