summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-25 23:30:56 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-25 23:30:56 +0000
commit8dc75d7535974b18fb43c514f2699e714b6ce387 (patch)
treeb5f4345aa6f24be0c79f57c7eeea972f100be5e9 /vl.c
parent03857e318e5159dfb3e574bc886df52fe22d0d8b (diff)
downloadqemu-8dc75d7535974b18fb43c514f2699e714b6ce387.tar.gz
moved DMA and SB16 outside timer (may break SB16)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@648 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vl.c b/vl.c
index 99a9fc4a13..7e729ee541 100644
--- a/vl.c
+++ b/vl.c
@@ -45,7 +45,6 @@
#include <linux/if.h>
#include <linux/if_tun.h>
-#include "cpu.h"
#include "disas.h"
#include "thunk.h"
@@ -2961,10 +2960,6 @@ static void host_alarm_handler(int host_signum, siginfo_t *info,
gui_refresh_pending = 1;
}
- /* XXX: seems dangerous to run that here. */
- DMA_run();
- SB16_run();
-
if (gui_refresh_pending || timer_irq_pending) {
/* just exit from the cpu to have a chance to handle timers */
cpu_interrupt(global_env, CPU_INTERRUPT_EXIT);
@@ -3090,6 +3085,11 @@ int main_loop(void *opaque)
}
#endif
}
+ /* XXX: add explicit timer */
+ SB16_run();
+
+ /* run dma transfers, if any */
+ DMA_run();
/* VGA */
if (gui_refresh_pending) {