mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
system/globals: Build as common code
Now that all targets have the graphic dimension variables initialized the same way, we can move them to the common file unit, having them built once. Remove the now empty globals-target.c file. The command line '-g WxH[xD]' option is not changed and behaves the same. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260216213121.47122-9-philmd@linaro.org>
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
/*
|
||||
* Global variables that should not exist (target specific)
|
||||
*
|
||||
* Copyright (c) 2003-2008 Fabrice Bellard
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "system/system.h"
|
||||
|
||||
int graphic_width;
|
||||
int graphic_height;
|
||||
int graphic_depth;
|
||||
@@ -49,6 +49,9 @@ bool enable_cpu_pm;
|
||||
int autostart = 1;
|
||||
int vga_interface_type = VGA_NONE;
|
||||
bool vga_interface_created;
|
||||
int graphic_width;
|
||||
int graphic_height;
|
||||
int graphic_depth;
|
||||
Chardev *parallel_hds[MAX_PARALLEL_PORTS];
|
||||
QEMUOptionRom option_rom[MAX_OPTION_ROMS];
|
||||
int nb_option_roms;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: [files(
|
||||
'arch_init.c',
|
||||
'globals-target.c',
|
||||
)])
|
||||
|
||||
system_ss.add(files(
|
||||
|
||||
Reference in New Issue
Block a user