aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-01-12 12:53:17 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-02-13 19:37:27 +0000
commit81ed2ed3e89a4919fb5946a0436973ba56095ae9 (patch)
tree5ff20614b0fc44b4e9ba7bf1780385bc4fc5e9c6 /hw/scsi
parent12486e4f6d6deffdac9f968de1dd0c38ab8199de (diff)
downloadqemu-81ed2ed3e89a4919fb5946a0436973ba56095ae9.zip
qemu-81ed2ed3e89a4919fb5946a0436973ba56095ae9.tar.gz
qemu-81ed2ed3e89a4919fb5946a0436973ba56095ae9.tar.bz2
esp.c: remove unaligned adjustment in do_dma_pdma_cb() to device path
With the latest changes this condition cannot occur anymore and so the logic can be completely removed. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Tested-by: Thomas Huth <thuth@redhat.com> Message-Id: <20240112125420.514425-26-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/esp.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index ec82097..3db90c9 100644
--- a/hw/scsi/esp.c
+++ b/hw/scsi/esp.c
@@ -604,15 +604,6 @@ static void do_dma_pdma_cb(ESPState *s)
s->async_len -= n;
s->ti_size += n;
- if (n < len) {
- /* Unaligned accesses can cause FIFO wraparound */
- len = len - n;
- n = esp_fifo_pop_buf(&s->fifo, s->async_buf, len);
- s->async_buf += n;
- s->async_len -= n;
- s->ti_size += n;
- }
-
if (s->async_len == 0) {
scsi_req_continue(s->current_req);
return;