]> git.proxmox.com Git - qemu.git/commit - hw/dma/sparc32_dma.c
sparc32 fix spurious dma interrupts v2
authorArtyom Tarasenko <atar4qemu@googlemail.com>
Mon, 15 Feb 2010 17:39:50 +0000 (18:39 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Mon, 15 Feb 2010 17:49:15 +0000 (17:49 +0000)
commit6f57bbf48cc42056a53495990f6770c3de1f4480
tree9e819b7e55581d0036da775896095b6340e54d53
parent47de922d9c46c8ae42ab38a5e1fa8b68d41865d9
sparc32 fix spurious dma interrupts v2

Don't raise irq when not enabled.
Raise irq on enabling if DMA_INTR is set
Don't clear irq unless it was raised by DMA, as there are other irq sources
Don't set DMA_INTR bit spuriously.

v1->v2:
 - Don't clear irq unless it was raised by DMA
 - Raise irq on enabling if DMA_INTR is set
 - Assume revertion of 787cfbc432bf1d353a77cbdb613754f3963371a3

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/sparc32_dma.c