qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pl110
@ 2007-06-17 10:23 Adam Lackorzynski
  0 siblings, 0 replies; only message in thread
From: Adam Lackorzynski @ 2007-06-17 10:23 UTC (permalink / raw)
  To: qemu-devel

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-17 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-17 10:23 [Qemu-devel] [PATCH] pl110 Adam Lackorzynski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).