mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 22:21:57 -06:00
esp.c: move CMD_TI end of message phase detection to esp_do_dma() and do_dma_pdma_cb()
The existing check for TC == 0 is only valid during a TI command. 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-51-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
3ee9a475a5
commit
3fd325a2de
1 changed files with 18 additions and 14 deletions
|
@ -555,8 +555,8 @@ static void do_dma_pdma_cb(ESPState *s)
|
|||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case CMD_TI | CMD_DMA:
|
||||
/* ATN remains asserted until TC == 0 */
|
||||
if (esp_get_tc(s) == 0) {
|
||||
esp_set_phase(s, STAT_CD);
|
||||
|
@ -565,6 +565,8 @@ static void do_dma_pdma_cb(ESPState *s)
|
|||
esp_raise_irq(s);
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case STAT_CD:
|
||||
cmdlen = fifo8_num_used(&s->cmdfifo);
|
||||
|
@ -675,8 +677,8 @@ static void esp_do_dma(ESPState *s)
|
|||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case CMD_TI | CMD_DMA:
|
||||
/* ATN remains asserted until TC == 0 */
|
||||
if (esp_get_tc(s) == 0) {
|
||||
esp_set_phase(s, STAT_CD);
|
||||
|
@ -685,6 +687,8 @@ static void esp_do_dma(ESPState *s)
|
|||
esp_raise_irq(s);
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case STAT_CD:
|
||||
cmdlen = fifo8_num_used(&s->cmdfifo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue