X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=sim%2Fppc%2Finterrupts.c;h=db100fd26b9aa77793e900d68827d054b1597b57;hb=7ef412cf72a197d68e532604cc1fa21351adc858;hp=deab7e9bf43c15f9152a52e2d0e55341b7fee176;hpb=ed288bb597072176e84fc8279707a3f2f475779b;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/ppc/interrupts.c b/sim/ppc/interrupts.c index deab7e9bf4..db100fd26b 100644 --- a/sim/ppc/interrupts.c +++ b/sim/ppc/interrupts.c @@ -1,10 +1,10 @@ /* This file is part of the program psim. - Copyright (C) 1994-1997, Andrew Cagney + 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 - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + along with this program; if not, see . */ @@ -469,7 +468,7 @@ deliver_hardware_interrupt(void *data) unsigned_word cia = cpu_get_program_counter(processor); unsigned_word nia = perform_oea_interrupt(processor, cia, 0x00900, 0, 0, 0, 0); - TRACE(trace_interrupts, ("decrementer interrupt - cia=0x%lx time=0x%lx\n", + TRACE(trace_interrupts, ("decrementer interrupt - cia 0x%lx, time %ld\n", (unsigned long)cia, (unsigned long)event_queue_time(psim_event_queue(cpu_system(processor))) )); @@ -522,7 +521,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);