Searched hist:"7 aa6baee" (Results 1 – 1 of 1) sorted by relevance
/qemu/hw/scsi/ |
H A D | esp.c | diff 7aa6baee Thu Mar 04 22:11:03 GMT 2021 Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> 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>
|