[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/8] serial: Allow unaligned i/o access
From: |
marcandre . lureau |
Subject: |
[PULL 5/8] serial: Allow unaligned i/o access |
Date: |
Thu, 29 Sep 2022 15:05:05 +0400 |
From: Arwed Meyer <arwed.meyer@gmx.de>
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>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220911181840.8933-6-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.37.3
- [PULL 0/8] chardev patches, marcandre . lureau, 2022/09/29
- [PULL 1/8] msmouse: Handle mouse reset, marcandre . lureau, 2022/09/29
- [PULL 2/8] chardev: src buffer const for write functions, marcandre . lureau, 2022/09/29
- [PULL 3/8] msmouse: Use fifo8 instead of array, marcandre . lureau, 2022/09/29
- [PULL 4/8] msmouse: Add pnp data, marcandre . lureau, 2022/09/29
- [PULL 6/8] chardev: fix segfault in finalize, marcandre . lureau, 2022/09/29
- [PULL 5/8] serial: Allow unaligned i/o access,
marcandre . lureau <=
- [PULL 8/8] vhost-user: Call qemu_socketpair() instead of socketpair(), marcandre . lureau, 2022/09/29
- [PULL 7/8] oslib-posix: Introduce qemu_socketpair(), marcandre . lureau, 2022/09/29