mirror of https://github.com/xemu-project/xemu.git
main-loop: unify qemu_init_main_loop between QEMU and tools
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
744ca8e375
commit
172061a0a0
|
@ -199,10 +199,13 @@ static int qemu_signal_init(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
int main_loop_init(void)
|
||||
int qemu_init_main_loop(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
init_clocks();
|
||||
init_timer_alarm();
|
||||
|
||||
qemu_mutex_lock_iothread();
|
||||
ret = qemu_signal_init();
|
||||
if (ret) {
|
||||
|
|
10
main-loop.h
10
main-loop.h
|
@ -42,16 +42,6 @@
|
|||
*/
|
||||
int qemu_init_main_loop(void);
|
||||
|
||||
/**
|
||||
* main_loop_init: Initializes main loop
|
||||
*
|
||||
* Internal (but shared for compatibility reasons) initialization routine
|
||||
* for the main loop. This should not be used by applications directly,
|
||||
* use qemu_init_main_loop() instead.
|
||||
*
|
||||
*/
|
||||
int main_loop_init(void);
|
||||
|
||||
/**
|
||||
* main_loop_wait: Run one iteration of the main loop.
|
||||
*
|
||||
|
|
|
@ -92,13 +92,6 @@ void qemu_clock_warp(QEMUClock *clock)
|
|||
{
|
||||
}
|
||||
|
||||
int qemu_init_main_loop(void)
|
||||
{
|
||||
init_clocks();
|
||||
init_timer_alarm();
|
||||
return main_loop_init();
|
||||
}
|
||||
|
||||
void slirp_update_timeout(uint32_t *timeout)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue