From owner-freebsd-ppc Mon Sep 30 8:48:41 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6531E37B401 for ; Mon, 30 Sep 2002 08:48:40 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE4D843E3B for ; Mon, 30 Sep 2002 08:48:39 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id g8UFmdq2036391; Mon, 30 Sep 2002 08:48:39 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.5/Submit) id g8UFmdnl036390; Mon, 30 Sep 2002 08:48:39 -0700 (PDT) Date: Mon, 30 Sep 2002 08:48:39 -0700 From: "David O'Brien" To: Joshua LeVasseur Cc: freebsd-ppc Subject: Re: [freebsd-ppc] psim bug Message-ID: <20020930154839.GA36341@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <0769F91E-CCBC-11D6-9A64-003065468D4E@bothan.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0769F91E-CCBC-11D6-9A64-003065468D4E@bothan.net> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Can you make a GDB bug report? If so I can work on getting psim fixed. http://sources.redhat.com/gdb/bugs/ On Fri, Sep 20, 2002 at 07:11:40PM +0200, Joshua LeVasseur wrote: > Has anyone noticed a problem with psim's external interrupt delivery? > psim refuses to raise an external interrupt (on behalf of my IPIs) if > the simulator has a pending decrementer interrupt. The bug is in > interrupts.c:external_interrupt(). It uses a logical inversion where > it should perform a bitwise inversion: > > 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); > } > > The if-clause is superfluous, so I removed it: > > ints->pending_interrupts |= external_interrupt_pending; > if (cpu_registers(processor)->msr & msr_external_interrupt_enable) > schedule_hardware_interrupt_delivery(processor); > > Now external interrupt delivery functions as expected. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message