[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] hw/slavio_serial.c read time constant fix
From: |
Robert Reif |
Subject: |
[Qemu-devel] [PATCH] hw/slavio_serial.c read time constant fix |
Date: |
Fri, 11 Apr 2008 08:43:20 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 |
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.
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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] hw/slavio_serial.c read time constant fix,
Robert Reif <=