Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nzzd8-0004iO-Kc for qemu-devel@nongnu.org; Thu, 08 Apr 2010 17:51:18 -0400 Received: from [140.186.70.92] (port=57061 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzzd6-0004ge-6J for qemu-devel@nongnu.org; Thu, 08 Apr 2010 17:51:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nzzd3-0004K9-PL for qemu-devel@nongnu.org; Thu, 08 Apr 2010 17:51:15 -0400 Received: from hall.aurel32.net ([88.191.82.174]:57867) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzzd3-0004Ju-KX for qemu-devel@nongnu.org; Thu, 08 Apr 2010 17:51:13 -0400 Date: Thu, 8 Apr 2010 21:23:11 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] smc91c111: mask register offset Message-ID: <20100408192310.GG6056@volta.aurel32.net> References: <1269868618-22654-1-git-send-email-lars@segv.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1269868618-22654-1-git-send-email-lars@segv.dk> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lars Munch Cc: qemu-devel@nongnu.org On Mon, Mar 29, 2010 at 03:16:58PM +0200, Lars Munch wrote: > this fixes the smc91c111 emulation which has been broken for gumstix and > mainstone and maybe others since the "MMIO callback interface changes" > 8da3ff180974732fc4272cb4433fef85c1822961 where commited, see: > > http://thread.gmane.org/gmane.comp.emulators.qemu/33607/focus=35194 Thanks, applied. > Signed-off-by: Lars Munch > --- > hw/smc91c111.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/hw/smc91c111.c b/hw/smc91c111.c > index c1a88c9..a2ef299 100644 > --- a/hw/smc91c111.c > +++ b/hw/smc91c111.c > @@ -250,6 +250,7 @@ static void smc91c111_writeb(void *opaque, target_phys_addr_t offset, > { > smc91c111_state *s = (smc91c111_state *)opaque; > > + offset = offset & 0xf; > if (offset == 14) { > s->bank = value; > return; > @@ -421,6 +422,7 @@ static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset) > { > smc91c111_state *s = (smc91c111_state *)opaque; > > + offset = offset & 0xf; > if (offset == 14) { > return s->bank; > } > -- > 1.7.0.3 > > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net