[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/8] hw/char/avr: Reduce USART I/O size
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 1/8] hw/char/avr: Reduce USART I/O size |
Date: |
Sat, 21 Dec 2019 02:02:19 +0100 |
Per the datasheet the USART uses 7 consecutive 8-bit registers.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/char/avr_usart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c
index cb307fe23d..becdb87847 100644
--- a/hw/char/avr_usart.c
+++ b/hw/char/avr_usart.c
@@ -280,7 +280,7 @@ static void avr_usart_init(Object *obj)
sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->rxc_irq);
sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->dre_irq);
sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->txc_irq);
- memory_region_init_io(&s->mmio, obj, &avr_usart_ops, s, TYPE_AVR_USART, 8);
+ memory_region_init_io(&s->mmio, obj, &avr_usart_ops, s, TYPE_AVR_USART, 7);
sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio);
qdev_init_gpio_in(DEVICE(s), avr_usart_pr, 1);
s->enabled = true;
--
2.21.0
- [PATCH v2 0/8] hw/avr: Introduce the Arduino boards, Philippe Mathieu-Daudé, 2019/12/20
- [PATCH v2 1/8] hw/char/avr: Reduce USART I/O size,
Philippe Mathieu-Daudé <=
- [PATCH v2 2/8] hw/timer/avr_timer16: Rename memory region debugging name, Philippe Mathieu-Daudé, 2019/12/20
- [PATCH v2 5/8] tests/boot-serial-test: Test some Arduino boards (AVR based), Philippe Mathieu-Daudé, 2019/12/20
- [PATCH v2 4/8] hw/avr: Add some Arduino boards, Philippe Mathieu-Daudé, 2019/12/20
- [PATCH v2 6/8] tests/acceptance: Do not set the machine type manually, Philippe Mathieu-Daudé, 2019/12/20
- [PATCH v2 3/8] hw/avr: Add some ATmega microcontrollers, Philippe Mathieu-Daudé, 2019/12/20
- [PATCH v2 7/8] tests/acceptance: Keep multilines comment consistent with other tests, Philippe Mathieu-Daudé, 2019/12/20
- [PATCH v2 8/8] tests/acceptance: Test the Arduino MEGA2560 board, Philippe Mathieu-Daudé, 2019/12/20
- Re: [PATCH v2 0/8] hw/avr: Introduce the Arduino boards, Philippe Mathieu-Daudé, 2019/12/20