qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/slavio_serial.c read time constant fix
@ 2008-04-11 12:43 Robert Reif
  0 siblings, 0 replies; only message in thread
From: Robert Reif @ 2008-04-11 12:43 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

The ss-600mp openboot prom does a self test on the time constant
registers by writing and reading them and comparing the values.

This patch makes the time constant registers return what was written.

[-- Attachment #2: slavio_serial.c.diff.txt --]
[-- Type: text/plain, Size: 580 bytes --]

Index: hw/slavio_serial.c
===================================================================
--- hw/slavio_serial.c	(revision 4186)
+++ hw/slavio_serial.c	(working copy)
@@ -514,9 +514,13 @@
             break;
         case W_TXCTRL1:
         case W_TXCTRL2:
+            s->wregs[s->reg] = val;
+            slavio_serial_update_parameters(s);
+            break;
         case W_BRGLO:
         case W_BRGHI:
             s->wregs[s->reg] = val;
+            s->rregs[s->reg] = val;
             slavio_serial_update_parameters(s);
             break;
         case W_MINTR:

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

only message in thread, other threads:[~2008-04-11 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11 12:43 [Qemu-devel] [PATCH] hw/slavio_serial.c read time constant fix Robert Reif

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).