Skip to contentSkip to conversation

hw/slavio_serial.c read time constant fix

PATCH New Robert Reif 1 participant 1 message Apr 11, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/slavio_serial.c read time constant fix

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.

slavio_serial.c +4 -0
Index: hw/slavio_serial.c
===================================================================
@@ -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: