Commit 1bfe856eb2c9920e4fb107b1b44037b07b4c118f

Authored by bellard
1 parent 7e71f16f

Cirrus VGA is the default - 128 MB default memory - 800x600 default PPC resolution


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@989 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 14 additions and 7 deletions
@@ -99,7 +99,7 @@ extern void __sigaction(); @@ -99,7 +99,7 @@ extern void __sigaction();
99 #ifdef TARGET_PPC 99 #ifdef TARGET_PPC
100 #define DEFAULT_RAM_SIZE 144 100 #define DEFAULT_RAM_SIZE 144
101 #else 101 #else
102 -#define DEFAULT_RAM_SIZE 32 102 +#define DEFAULT_RAM_SIZE 128
103 #endif 103 #endif
104 /* in ms */ 104 /* in ms */
105 #define GUI_REFRESH_INTERVAL 30 105 #define GUI_REFRESH_INTERVAL 30
@@ -133,9 +133,9 @@ int audio_enabled = 0; @@ -133,9 +133,9 @@ int audio_enabled = 0;
133 int pci_enabled = 1; 133 int pci_enabled = 1;
134 int prep_enabled = 0; 134 int prep_enabled = 0;
135 int rtc_utc = 1; 135 int rtc_utc = 1;
136 -int cirrus_vga_enabled = 0;  
137 -int graphic_width = 640;  
138 -int graphic_height = 480; 136 +int cirrus_vga_enabled = 1;
  137 +int graphic_width = 800;
  138 +int graphic_height = 600;
139 int graphic_depth = 15; 139 int graphic_depth = 15;
140 140
141 /***********************************************************/ 141 /***********************************************************/
@@ -960,14 +960,14 @@ int serial_open_device(void) @@ -960,14 +960,14 @@ int serial_open_device(void)
960 960
961 int serial_open_device(void) 961 int serial_open_device(void)
962 { 962 {
963 - char slave_name[1024];  
964 - int master_fd, slave_fd;  
965 -  
966 if (serial_console == NULL && nographic) { 963 if (serial_console == NULL && nographic) {
967 /* use console for serial port */ 964 /* use console for serial port */
968 return 0; 965 return 0;
969 } else { 966 } else {
970 #if 0 967 #if 0
  968 + char slave_name[1024];
  969 + int master_fd, slave_fd;
  970 +
971 /* Not satisfying */ 971 /* Not satisfying */
972 if (openpty(&master_fd, &slave_fd, slave_name, NULL, NULL) < 0) { 972 if (openpty(&master_fd, &slave_fd, slave_name, NULL, NULL) < 0) {
973 fprintf(stderr, "warning: could not create pseudo terminal for serial port\n"); 973 fprintf(stderr, "warning: could not create pseudo terminal for serial port\n");
@@ -2115,6 +2115,8 @@ void help(void) @@ -2115,6 +2115,8 @@ void help(void)
2115 #endif 2115 #endif
2116 #ifdef TARGET_I386 2116 #ifdef TARGET_I386
2117 "-isa simulate an ISA-only system (default is PCI system)\n" 2117 "-isa simulate an ISA-only system (default is PCI system)\n"
  2118 + "-std-vga simulate a standard VGA card with VESA Bochs Extensions\n"
  2119 + " (default is CL-GD5446 PCI VGA)\n"
2118 #endif 2120 #endif
2119 "\n" 2121 "\n"
2120 "During emulation, use C-a h to get terminal commands:\n", 2122 "During emulation, use C-a h to get terminal commands:\n",
@@ -2179,6 +2181,7 @@ enum { @@ -2179,6 +2181,7 @@ enum {
2179 QEMU_OPTION_localtime, 2181 QEMU_OPTION_localtime,
2180 QEMU_OPTION_cirrusvga, 2182 QEMU_OPTION_cirrusvga,
2181 QEMU_OPTION_g, 2183 QEMU_OPTION_g,
  2184 + QEMU_OPTION_std_vga,
2182 }; 2185 };
2183 2186
2184 typedef struct QEMUOption { 2187 typedef struct QEMUOption {
@@ -2229,6 +2232,7 @@ const QEMUOption qemu_options[] = { @@ -2229,6 +2232,7 @@ const QEMUOption qemu_options[] = {
2229 #endif 2232 #endif
2230 { "localtime", 0, QEMU_OPTION_localtime }, 2233 { "localtime", 0, QEMU_OPTION_localtime },
2231 { "isa", 0, QEMU_OPTION_isa }, 2234 { "isa", 0, QEMU_OPTION_isa },
  2235 + { "std-vga", 0, QEMU_OPTION_std_vga },
2232 2236
2233 /* temporary options */ 2237 /* temporary options */
2234 { "pci", 0, QEMU_OPTION_pci }, 2238 { "pci", 0, QEMU_OPTION_pci },
@@ -2518,6 +2522,9 @@ int main(int argc, char **argv) @@ -2518,6 +2522,9 @@ int main(int argc, char **argv)
2518 case QEMU_OPTION_cirrusvga: 2522 case QEMU_OPTION_cirrusvga:
2519 cirrus_vga_enabled = 1; 2523 cirrus_vga_enabled = 1;
2520 break; 2524 break;
  2525 + case QEMU_OPTION_std_vga:
  2526 + cirrus_vga_enabled = 0;
  2527 + break;
2521 case QEMU_OPTION_g: 2528 case QEMU_OPTION_g:
2522 { 2529 {
2523 const char *p; 2530 const char *p;