diff options
author | Mark Cave-Ayland | 2021-03-04 23:11:03 +0100 |
---|---|---|
committer | Mark Cave-Ayland | 2021-03-07 11:39:05 +0100 |
commit | 7aa6baee7c8a54473f28c6fa1e980a9ff7989036 (patch) | |
tree | 3d5a9c326ec071f12e92c2ef4686fb621c046c78 /hw/i2c/smbus_slave.c | |
parent | esp: implement non-DMA transfers in PDMA mode (diff) | |
download | qemu-7aa6baee7c8a54473f28c6fa1e980a9ff7989036.tar.gz qemu-7aa6baee7c8a54473f28c6fa1e980a9ff7989036.tar.xz qemu-7aa6baee7c8a54473f28c6fa1e980a9ff7989036.zip |
esp: add support for unaligned accesses
When the MacOS toolbox ROM transfers data from a target device to an unaligned
memory address, the first/last byte of a 16-bit transfer needs to be handled
separately. This means that the first byte is preloaded into the FIFO before
the transfer, or the last byte remains in the FIFO after the transfer.
The result of this is that the PDMA routines must be updated so that the FIFO
is loaded/unloaded if the last 16-bit word is used (rather than the last byte)
and any remaining byte from a FIFO wraparound is handled correctly.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210304221103.6369-43-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/i2c/smbus_slave.c')
0 files changed, 0 insertions, 0 deletions