summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hw/esp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/esp.c b/hw/esp.c
index aff8de6839..ac91f00351 100644
--- 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;