Don't clear DMA status register when loading address.
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 21 May 2006 22:20:03 +0000 (22:20 +0000)
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 21 May 2006 22:20:03 +0000 (22:20 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1929 c046a42c-6fe2-441c-8c8c-71466251a162

hw/esp.c

index 5c8400d..30708a1 100644 (file)
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -690,7 +690,7 @@ static void espdma_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t va
         val |= DMA_VER;
        break;
     case 1:
-        s->espdmaregs[0] = DMA_LOADED;
+        s->espdmaregs[0] |= DMA_LOADED;
         break;
     default:
        break;