Patchwork [v3,05/17] vl.c: default to std if cirrus is not available

login
register
mail settings
Submitter Aurelien Jarno
Date Sept. 11, 2012, 7:10 p.m.
Message ID <1347390642-17434-6-git-send-email-aurelien@aurel32.net>
Download mbox | patch
Permalink /patch/183191/
State New
Headers show

Comments

Aurelien Jarno - Sept. 11, 2012, 7:10 p.m.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 vl.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Patch

diff --git a/vl.c b/vl.c
index ba2fa9f..6ca27f5 100644
--- a/vl.c
+++ b/vl.c
@@ -3606,8 +3606,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);