[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] sysemu: add defines for sparc & ppc graphics_*
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 1/9] sysemu: add defines for sparc & ppc graphics_* |
Date: |
Tue, 21 Feb 2017 23:14:51 +0100 |
Add defines for the sparc and ppc arch specific graphics defaults.
They return the graphic_* values these variables are non-zero, and
the default values otherwise.
After switching over ppc and sparc to use these we don't need the
arch-specific initialization for the graphic_* variables any more.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
include/sysemu/sysemu.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 576c7ce..9450788 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -142,9 +142,16 @@ typedef enum {
extern int vga_interface_type;
#define xenfb_enabled (vga_interface_type == VGA_XENFB)
+#define sparc_graphic_width (graphic_width ? graphic_width : 1024)
+#define sparc_graphic_height (graphic_height ? graphic_height : 768)
+#define sparc_graphic_depth (graphic_depth ? graphic_depth : 8)
+#define ppc_graphic_width (graphic_width ? graphic_width : 800)
+#define ppc_graphic_height (graphic_height ? graphic_height : 600)
+#define ppc_graphic_depth (graphic_depth ? graphic_depth : 32)
extern int graphic_width;
extern int graphic_height;
extern int graphic_depth;
+
extern int display_opengl;
extern const char *keyboard_layout;
extern int win2k_install_hack;
--
1.8.3.1
- Re: [Qemu-devel] [PATCH 5/9] enable -g command line switch for all archs, (continued)
- [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, 2017/02/21
- [Qemu-devel] [PATCH 1/9] sysemu: add defines for sparc & ppc graphics_*,
Gerd Hoffmann <=
- [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