mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
console: add GraphicHwOps
Pass a single GraphicHwOps struct pointer to graphic_console_init, instead of a bunch of function pointers. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
27be55872d
commit
380cd056ec
26 changed files with 155 additions and 104 deletions
|
@ -78,6 +78,8 @@ static void puv3_board_init(CPUUniCore32State *env, ram_addr_t ram_size)
|
|||
memory_region_add_subregion(get_system_memory(), 0, ram_memory);
|
||||
}
|
||||
|
||||
static const GraphicHwOps no_ops;
|
||||
|
||||
static void puv3_load_kernel(const char *kernel_filename)
|
||||
{
|
||||
int size;
|
||||
|
@ -92,7 +94,7 @@ static void puv3_load_kernel(const char *kernel_filename)
|
|||
}
|
||||
|
||||
/* cheat curses that we have a graphic console, only under ocd console */
|
||||
graphic_console_init(NULL, NULL, NULL, NULL);
|
||||
graphic_console_init(&no_ops, NULL);
|
||||
}
|
||||
|
||||
static void puv3_init(QEMUMachineInitArgs *args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue