serial: Allow unaligned i/o access
commit769a726ccb9a8ab9b2a05bca648c79b3f80ab8de
authorArwed Meyer <arwed.meyer@gmx.de>
Sun, 11 Sep 2022 18:18:40 +0000 (11 20:18 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 29 Sep 2022 10:38:05 +0000 (29 14:38 +0400)
treed974a3da56771ebb6dbe072158364c499322ea61
parent50d03d485251d63931a69b3ad7004f3bb6ac8eee
serial: Allow unaligned i/o access

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