mirror of https://github.com/xqemu/xqemu.git
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
This commit is contained in:
parent
03857e318e
commit
8dc75d7535
10
vl.c
10
vl.c
|
@ -45,7 +45,6 @@
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
#include <linux/if_tun.h>
|
#include <linux/if_tun.h>
|
||||||
|
|
||||||
#include "cpu.h"
|
|
||||||
#include "disas.h"
|
#include "disas.h"
|
||||||
#include "thunk.h"
|
#include "thunk.h"
|
||||||
|
|
||||||
|
@ -2961,10 +2960,6 @@ static void host_alarm_handler(int host_signum, siginfo_t *info,
|
||||||
gui_refresh_pending = 1;
|
gui_refresh_pending = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX: seems dangerous to run that here. */
|
|
||||||
DMA_run();
|
|
||||||
SB16_run();
|
|
||||||
|
|
||||||
if (gui_refresh_pending || timer_irq_pending) {
|
if (gui_refresh_pending || timer_irq_pending) {
|
||||||
/* just exit from the cpu to have a chance to handle timers */
|
/* just exit from the cpu to have a chance to handle timers */
|
||||||
cpu_interrupt(global_env, CPU_INTERRUPT_EXIT);
|
cpu_interrupt(global_env, CPU_INTERRUPT_EXIT);
|
||||||
|
@ -3090,6 +3085,11 @@ int main_loop(void *opaque)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
/* XXX: add explicit timer */
|
||||||
|
SB16_run();
|
||||||
|
|
||||||
|
/* run dma transfers, if any */
|
||||||
|
DMA_run();
|
||||||
|
|
||||||
/* VGA */
|
/* VGA */
|
||||||
if (gui_refresh_pending) {
|
if (gui_refresh_pending) {
|
||||||
|
|
Loading…
Reference in New Issue