aboutsummaryrefslogtreecommitdiff
path: root/hw/slavio_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/slavio_serial.c')
-rw-r--r--hw/slavio_serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/slavio_serial.c b/hw/slavio_serial.c
index 1ef3c119e5..97891cc529 100644
--- a/hw/slavio_serial.c
+++ b/hw/slavio_serial.c
@@ -529,10 +529,10 @@ static void slavio_serial_mem_writeb(void *opaque, target_phys_addr_t addr,
default:
break;
case MINTR_RST_B:
- slavio_serial_reset_chn(&serial->chn[1]);
+ slavio_serial_reset_chn(&serial->chn[0]);
return;
case MINTR_RST_A:
- slavio_serial_reset_chn(&serial->chn[0]);
+ slavio_serial_reset_chn(&serial->chn[1]);
return;
case MINTR_RST_ALL:
slavio_serial_reset(serial);