[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] dumb_display_init() crash
From: |
Andrew May |
Subject: |
[Qemu-devel] [PATCH] dumb_display_init() crash |
Date: |
Mon, 19 Jan 2009 22:43:58 -0800 |
This fixes a crash for the 405 boards that don't do a display init.
I would think this is correct but I am not sure if there is more that
needs to be setup. This at least gets me back to the SDL display I use
to see before the re-org.
diff --git a/trunk/vl.c b/trunk/vl.c
index 63d954b..cc58df2 100644
--- a/trunk/vl.c
+++ b/trunk/vl.c
@@ -2778,6 +2778,12 @@ DisplayState *get_displaystate(void)
static void dumb_display_init(void)
{
DisplayState *ds = qemu_mallocz(sizeof(DisplayState));
+
+ if (ds == NULL)
+ return;
+
+ ds->surface = qemu_create_displaysurface(640, 480, 32, 640 * 4);
+
register_displaystate(ds);
}
- [Qemu-devel] [PATCH] dumb_display_init() crash,
Andrew May <=