Received: from eggs.gnu.org ([140.186.70.92]:36602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjcFj-0007Ij-36 for qemu-devel@nongnu.org; Sat, 07 Jan 2012 14:48:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjcFh-0007WD-Qt for qemu-devel@nongnu.org; Sat, 07 Jan 2012 14:48:31 -0500 Date: Sat, 7 Jan 2012 20:48:27 +0100 From: Aurelien Jarno Message-ID: <20120107194827.GB20302@volta.aurel32.net> References: <1322544888-14951-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1322544888-14951-1-git-send-email-sw@weilnetz.de> Subject: Re: [Qemu-devel] [PATCH 1.0 v2] malta: Fix regression (i8259 interrupts did not work) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org On Tue, Nov 29, 2011 at 06:34:48AM +0100, Stefan Weil wrote: > Commit 5632ae46d5bda798e971dae48ebb318ac2c3686a passes the address > of i8259 to qemu_irq_proxy. i8259 is an auto variable with undefined > value outside of mips_malta_init. > > This made the interrupt proxy unusable: either QEMU crashes, or > the interrupt handler was not called. > > Ethernet for example no longer worked with MIPS Malta. > > v2: > While v1 used a static variable for i8259, this patch introduces > a qdev for the malta machine. i8259 is now part of the device status. > This is a minimal qdev implementation to keep the patch small. > > Signed-off-by: Stefan Weil > --- > hw/mips_malta.c | 39 +++++++++++++++++++++++++++++++++++---- > 1 files changed, 35 insertions(+), 4 deletions(-) Thanks applied. Cc: QEMU stable as the patch should also be applied there. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net