mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
Merge remote-tracking branch 'origin/master' into staging
* origin/master:
sun4u: implement interrupt clearing registers
sun4u: initialize OBIO interrupt mappings
fix block loads broken in commit 30038fd818
Implement address masking for SPARC v9 CPUs
vga: disable default VGA if appropriate -device is used
cputlb: fix watchpoints handling
This commit is contained in:
commit
77f4c9a68a
5 changed files with 59 additions and 13 deletions
23
vl.c
23
vl.c
|
@ -273,6 +273,7 @@ static int default_monitor = 1;
|
|||
static int default_floppy = 1;
|
||||
static int default_cdrom = 1;
|
||||
static int default_sdcard = 1;
|
||||
static int default_vga = 1;
|
||||
|
||||
static struct {
|
||||
const char *driver;
|
||||
|
@ -288,6 +289,12 @@ static struct {
|
|||
{ .driver = "virtio-serial-pci", .flag = &default_virtcon },
|
||||
{ .driver = "virtio-serial-s390", .flag = &default_virtcon },
|
||||
{ .driver = "virtio-serial", .flag = &default_virtcon },
|
||||
{ .driver = "VGA", .flag = &default_vga },
|
||||
{ .driver = "isa-vga", .flag = &default_vga },
|
||||
{ .driver = "cirrus-vga", .flag = &default_vga },
|
||||
{ .driver = "isa-cirrus-vga", .flag = &default_vga },
|
||||
{ .driver = "vmware-svga", .flag = &default_vga },
|
||||
{ .driver = "qxl-vga", .flag = &default_vga },
|
||||
};
|
||||
|
||||
static void res_free(void)
|
||||
|
@ -2277,7 +2284,7 @@ int main(int argc, char **argv, char **envp)
|
|||
const char *loadvm = NULL;
|
||||
QEMUMachine *machine;
|
||||
const char *cpu_model;
|
||||
const char *vga_model = NULL;
|
||||
const char *vga_model = "none";
|
||||
const char *pid_file = NULL;
|
||||
const char *incoming = NULL;
|
||||
#ifdef CONFIG_VNC
|
||||
|
@ -2707,6 +2714,7 @@ int main(int argc, char **argv, char **envp)
|
|||
break;
|
||||
case QEMU_OPTION_vga:
|
||||
vga_model = optarg;
|
||||
default_vga = 0;
|
||||
break;
|
||||
case QEMU_OPTION_g:
|
||||
{
|
||||
|
@ -3116,7 +3124,7 @@ int main(int argc, char **argv, char **envp)
|
|||
default_floppy = 0;
|
||||
default_cdrom = 0;
|
||||
default_sdcard = 0;
|
||||
vga_model = "none";
|
||||
default_vga = 0;
|
||||
break;
|
||||
case QEMU_OPTION_xen_domid:
|
||||
if (!(xen_available())) {
|
||||
|
@ -3486,14 +3494,11 @@ int main(int argc, char **argv, char **envp)
|
|||
if (foreach_device_config(DEV_DEBUGCON, debugcon_parse) < 0)
|
||||
exit(1);
|
||||
|
||||
/* must be after qdev registration but before machine init */
|
||||
if (vga_model) {
|
||||
select_vgahw(vga_model);
|
||||
} else if (cirrus_vga_available()) {
|
||||
select_vgahw("cirrus");
|
||||
} else {
|
||||
select_vgahw("none");
|
||||
/* If no default VGA is requested, the default is "none". */
|
||||
if (default_vga && cirrus_vga_available()) {
|
||||
vga_model = "cirrus";
|
||||
}
|
||||
select_vgahw(vga_model);
|
||||
|
||||
if (qemu_opts_foreach(qemu_find_opts("device"), device_help_func, NULL, 0) != 0)
|
||||
exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue