From 3605ded557eb2a6d06a942b952c8fac4c676b125 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 10 Sep 2012 01:01:44 +0200 Subject: [PATCH] vl.c: default to std if cirrus is not available Signed-off-by: Aurelien Jarno --- vl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 17a33a0968..02dade19fc 100644 --- a/vl.c +++ b/vl.c @@ -3617,8 +3617,12 @@ int main(int argc, char **argv, char **envp) exit(1); /* If no default VGA is requested, the default is "none". */ - if (default_vga && cirrus_vga_available()) { - vga_model = "cirrus"; + if (default_vga) { + if (cirrus_vga_available()) { + vga_model = "cirrus"; + } else if (vga_available()) { + vga_model = "std"; + } } select_vgahw(vga_model);