mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
spice: Initialization stubs on qemu-spice.h
This reduces the number of CONFIG_SPICE #ifdefs in vl.c. Cc: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
19a2c6269f
commit
6f0c894c25
2 changed files with 13 additions and 4 deletions
4
vl.c
4
vl.c
|
@ -4360,10 +4360,8 @@ int main(int argc, char **argv, char **envp)
|
|||
|
||||
os_set_line_buffering();
|
||||
|
||||
#ifdef CONFIG_SPICE
|
||||
/* spice needs the timers to be initialized by this point */
|
||||
qemu_spice_init();
|
||||
#endif
|
||||
|
||||
cpu_ticks_init();
|
||||
if (icount_opts) {
|
||||
|
@ -4564,11 +4562,9 @@ int main(int argc, char **argv, char **envp)
|
|||
g_free(ret);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SPICE
|
||||
if (using_spice) {
|
||||
qemu_spice_display_init();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (foreach_device_config(DEV_GDB, gdbserver_start) < 0) {
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue