Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzrvC-0003Up-N3 for qemu-devel@nongnu.org; Sun, 17 Jun 2007 06:23:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzrvA-0003Ts-O7 for qemu-devel@nongnu.org; Sun, 17 Jun 2007 06:23:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzrvA-0003Tl-LJ for qemu-devel@nongnu.org; Sun, 17 Jun 2007 06:23:48 -0400 Received: from os.inf.tu-dresden.de ([141.76.48.99]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzrvA-0000g1-6a for qemu-devel@nongnu.org; Sun, 17 Jun 2007 06:23:48 -0400 Received: from erwin.inf.tu-dresden.de ([141.76.48.80]) by os.inf.tu-dresden.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) id 1Hzrv6-00067c-4F for qemu-devel@nongnu.org; Sun, 17 Jun 2007 12:23:44 +0200 Received: from adam by erwin.inf.tu-dresden.de with local (Exim 4.63) (envelope-from ) id 1Hzrv5-0003um-ME for qemu-devel@nongnu.org; Sun, 17 Jun 2007 12:23:43 +0200 Date: Sun, 17 Jun 2007 12:23:43 +0200 From: Adam Lackorzynski Message-ID: <20070617102343.GE14071@os.inf.tu-dresden.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Subject: [Qemu-devel] [PATCH] pl110 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I think there's a small issue with the pl110 emulation. LCDIMSC and LCDControl are swapped depending whether versatile is used as a platform or not. This is done in the write function but not in the read function where it also should be done. Possible patch: Index: pl110.c =================================================================== RCS file: /sources/qemu/qemu/hw/pl110.c,v retrieving revision 1.9 diff -u -r1.9 pl110.c --- pl110.c 3 Jun 2007 15:19:32 -0000 1.9 +++ pl110.c 17 Jun 2007 10:06:28 -0000 @@ -302,8 +302,12 @@ case 5: /* LCDLPBASE */ return s->lpbase; case 6: /* LCDIMSC */ + if (s->versatile) + return s->cr; return s->int_mask; case 7: /* LCDControl */ + if (s->versatile) + return s->int_mask; return s->cr; case 8: /* LCDRIS */ return s->int_status; Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/