aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/slavio_serial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/slavio_serial.c b/hw/slavio_serial.c
index bd572b03fd..03bd534bd5 100644
--- a/hw/slavio_serial.c
+++ b/hw/slavio_serial.c
@@ -514,9 +514,13 @@ static void slavio_serial_mem_writeb(void *opaque, target_phys_addr_t addr,
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: