mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
esp: delay Transfer Information command if dma is not enabled
The same mechanism is already in place for some select commands. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
1b26eaa138
commit
7246e16076
1 changed files with 5 additions and 0 deletions
5
hw/esp.c
5
hw/esp.c
|
@ -435,6 +435,11 @@ static void handle_ti(ESPState *s)
|
|||
{
|
||||
uint32_t dmalen, minlen;
|
||||
|
||||
if (s->dma && !s->dma_enabled) {
|
||||
s->dma_cb = handle_ti;
|
||||
return;
|
||||
}
|
||||
|
||||
dmalen = s->rregs[ESP_TCLO] | (s->rregs[ESP_TCMID] << 8);
|
||||
if (dmalen==0) {
|
||||
dmalen=0x10000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue