[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/9] drop arch-specific graphic_* initialization.
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 4/9] drop arch-specific graphic_* initialization. |
Date: |
Tue, 21 Feb 2017 23:14:54 +0100 |
Now that sparc and ppc can deal with uninitialized graphic_* variables
we can drop the #ifdefs and also move the variables out of arch_init.c
as they are not arch specific any more.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
arch_init.c | 11 -----------
vl.c | 3 +++
2 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 0810116..f41af1c 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -34,17 +34,6 @@
#include "hw/acpi/acpi.h"
#include "qemu/help_option.h"
-#ifdef TARGET_SPARC
-int graphic_width = 1024;
-int graphic_height = 768;
-int graphic_depth = 8;
-#else
-int graphic_width = 800;
-int graphic_height = 600;
-int graphic_depth = 32;
-#endif
-
-
#if defined(TARGET_ALPHA)
#define QEMU_ARCH QEMU_ARCH_ALPHA
#elif defined(TARGET_ARM)
diff --git a/vl.c b/vl.c
index 27d9829..3be883e 100644
--- a/vl.c
+++ b/vl.c
@@ -135,6 +135,9 @@ const char *bios_name = NULL;
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB;
int request_opengl = -1;
int display_opengl;
+int graphic_width;
+int graphic_height;
+int graphic_depth;
const char* keyboard_layout = NULL;
ram_addr_t ram_size;
const char *mem_path = NULL;
--
1.8.3.1
- [Qemu-devel] [PATCH 5/9] enable -g command line switch for all archs, (continued)
- [Qemu-devel] [PATCH 5/9] enable -g command line switch for all archs, Gerd Hoffmann, 2017/02/21
- [Qemu-devel] [PATCH 8/9] update -g command line switch documentation, Gerd Hoffmann, 2017/02/21
- [Qemu-devel] [PATCH 3/9] ppc: use ppc_graphic_* defines, Gerd Hoffmann, 2017/02/21
- [Qemu-devel] [PATCH 7/9] qxl: use graphic_* variables., Gerd Hoffmann, 2017/02/21
- [Qemu-devel] [PATCH 2/9] sparc: use sparc_graphic_* defines, Gerd Hoffmann, 2017/02/21
- [Qemu-devel] [PATCH 4/9] drop arch-specific graphic_* initialization.,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 1/9] sysemu: add defines for sparc & ppc graphics_*, Gerd Hoffmann, 2017/02/21
- [Qemu-devel] [PATCH 9/9] [RfC] stdvga: use graphic_* variables., Gerd Hoffmann, 2017/02/21
- Re: [Qemu-devel] [PATCH 0/9] wire up -g <width>x<height> switch for virtio and qxl., Mark Cave-Ayland, 2017/02/24