[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 5/5] serial: Allow unaligned i/o access
From: |
Arwed Meyer |
Subject: |
[PATCH v3 5/5] serial: Allow unaligned i/o access |
Date: |
Sun, 11 Sep 2022 20:18:40 +0200 |
Unaligned i/o access on serial UART works on real PCs.
This is used for example by FreeDOS CTMouse driver. Without this it
can't reset and detect serial mice.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/77
Signed-off-by: Arwed Meyer <arwed.meyer@gmx.de>
---
hw/char/serial.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/char/serial.c b/hw/char/serial.c
index 7061aacbce..41b5e61977 100644
--- a/hw/char/serial.c
+++ b/hw/char/serial.c
@@ -961,6 +961,9 @@ void serial_set_frequency(SerialState *s, uint32_t
frequency)
const MemoryRegionOps serial_io_ops = {
.read = serial_ioport_read,
.write = serial_ioport_write,
+ .valid = {
+ .unaligned = 1,
+ },
.impl = {
.min_access_size = 1,
.max_access_size = 1,
--
2.34.1
- Re: [PATCH v2 1/5] msmouse: Handle mouse reset, (continued)
[PATCH v2 2/5] chardev: src buffer const for write functions, Arwed Meyer, 2022/09/08
[PATCH v2 0/5] Make serial msmouse work, Arwed Meyer, 2022/09/11
- [PATCH v3 1/5] msmouse: Handle mouse reset, Arwed Meyer, 2022/09/11
- [PATCH v3 2/5] chardev: src buffer const for write functions, Arwed Meyer, 2022/09/11
- [PATCH v3 4/5] msmouse: Add pnp data, Arwed Meyer, 2022/09/11
- [PATCH v3 5/5] serial: Allow unaligned i/o access,
Arwed Meyer <=
- [PATCH v3 3/5] msmouse: Use fifo8 instead of array, Arwed Meyer, 2022/09/11
- Re: [PATCH v2 0/5] Make serial msmouse work, Arwed Meyer, 2022/09/24