]> git.proxmox.com Git - qemu.git/commitdiff
esp: delay Transfer Information command if dma is not enabled
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 9 Jul 2012 10:02:23 +0000 (12:02 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 14 Jul 2012 10:11:41 +0000 (10:11 +0000)
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>
hw/esp.c

index aff8de68394d58d95cf847ddfe0b81860e95dfa6..ac91f003518d2368889acd1770b6a30a19bf1665 100644 (file)
--- a/hw/esp.c
+++ b/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;