aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs_dma.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-07-29 15:36:43 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2011-09-15 16:39:32 -0300
commit1354869c380cf4560fa3f0520e914cb5ee380ac8 (patch)
treeda76e4d2063b81905a66a8446d9301bd910ee856 /hw/etraxfs_dma.c
parent1bcef683bf840a928d633755031ac572d5fdb851 (diff)
downloadqemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.zip
qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.gz
qemu-1354869c380cf4560fa3f0520e914cb5ee380ac8.tar.bz2
Drop the vm_running global variable
Use runstate_is_running() instead, which is introduced by this commit. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hw/etraxfs_dma.c')
-rw-r--r--hw/etraxfs_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/etraxfs_dma.c b/hw/etraxfs_dma.c
index e8ad9e6..d3082ac 100644
--- a/hw/etraxfs_dma.c
+++ b/hw/etraxfs_dma.c
@@ -732,7 +732,7 @@ static void DMA_run(void *opaque)
struct fs_dma_ctrl *etraxfs_dmac = opaque;
int p = 1;
- if (vm_running)
+ if (runstate_is_running())
p = etraxfs_dmac_run(etraxfs_dmac);
if (p)