From: David Ahern <daahern@cisco.com>
To: qemu-devel@nongnu.org
Cc: David Ahern <daahern@cisco.com>
Subject: [Qemu-devel] [PATCH 07/11] config: handle CONFIG_VGA_ISA=n
Date: Fri, 14 Jan 2011 12:12:17 -0700 [thread overview]
Message-ID: <1295032341-6926-8-git-send-email-daahern@cisco.com> (raw)
In-Reply-To: <1295032341-6926-1-git-send-email-daahern@cisco.com>
Fix compile errors and remove -M isapc option for CONFIG_VGA_ISA=n.
Signed-off-by: David Ahern <daahern@cisco.com>
---
hw/pc.c | 2 ++
hw/pc_piix.c | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/hw/pc.c b/hw/pc.c
index e7514fd..11b570f 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1087,8 +1087,10 @@ void pc_vga_init(PCIBus *pci_bus)
} else if (std_vga_enabled) {
if (pci_bus) {
pci_vga_init(pci_bus);
+#ifdef CONFIG_VGA_ISA
} else {
isa_vga_init();
+#endif
}
}
}
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index 5046947..7d65e37 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -199,6 +199,7 @@ static void pc_init_pci(ram_addr_t ram_size,
initrd_filename, cpu_model, 1);
}
+#ifdef CONFIG_VGA_ISA
static void pc_init_isa(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename,
@@ -212,6 +213,7 @@ static void pc_init_isa(ram_addr_t ram_size,
kernel_filename, kernel_cmdline,
initrd_filename, cpu_model, 0);
}
+#endif
static QEMUMachine pc_machine = {
.name = "pc-0.14",
@@ -370,12 +372,14 @@ static QEMUMachine pc_machine_v0_10 = {
},
};
+#ifdef CONFIG_VGA_ISA
static QEMUMachine isapc_machine = {
.name = "isapc",
.desc = "ISA-only PC",
.init = pc_init_isa,
.max_cpus = 1,
};
+#endif
static void pc_machine_init(void)
{
@@ -384,7 +388,9 @@ static void pc_machine_init(void)
qemu_register_machine(&pc_machine_v0_12);
qemu_register_machine(&pc_machine_v0_11);
qemu_register_machine(&pc_machine_v0_10);
+#ifdef CONFIG_VGA_ISA
qemu_register_machine(&isapc_machine);
+#endif
}
machine_init(pc_machine_init);
--
1.7.3.4
next prev parent reply other threads:[~2011-01-14 19:12 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 19:12 [Qemu-devel] [PATCH 00/11] misc cleanups for use of config settings David Ahern
2011-01-14 19:12 ` [Qemu-devel] [PATCH 01/11] fix 'no such file' error from make_device_config.sh David Ahern
2011-01-14 21:04 ` Stefan Weil
2011-01-14 21:16 ` David Ahern
2011-01-15 15:42 ` [Qemu-devel] " Paolo Bonzini
2011-01-14 19:12 ` [Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files David Ahern
2011-01-14 20:17 ` Blue Swirl
2011-01-14 20:24 ` David Ahern
2011-01-14 20:31 ` Blue Swirl
2011-01-14 20:47 ` David Ahern
2011-01-14 20:57 ` Blue Swirl
2011-01-14 21:04 ` David Ahern
2011-01-14 21:36 ` Blue Swirl
2011-01-14 21:54 ` David Ahern
2011-01-15 16:18 ` [Qemu-devel] " Paolo Bonzini
2011-01-15 16:30 ` Blue Swirl
2011-01-14 19:12 ` [Qemu-devel] [PATCH 03/11] config: fix compile for CONFIG_VMWARE_VGA=n David Ahern
2011-01-14 19:12 ` [Qemu-devel] [PATCH 04/11] config: fix compile for CONFIG_PARALLEL=n David Ahern
2011-01-14 19:12 ` [Qemu-devel] [PATCH 05/11] remove unused parallel_* variables from pc.c David Ahern
2011-01-14 19:12 ` [Qemu-devel] [PATCH 06/11] config: fix compile for CONFIG_NE2000_ISA=n David Ahern
2011-01-14 19:12 ` David Ahern [this message]
2011-01-15 15:43 ` [Qemu-devel] Re: [PATCH 07/11] config: handle CONFIG_VGA_ISA=n Paolo Bonzini
2011-01-14 19:12 ` [Qemu-devel] [PATCH 08/11] config: fix compile for CONFIG_IDE_ISA=n David Ahern
2011-01-14 19:12 ` [Qemu-devel] [PATCH 09/11] config: fix compile for CONFIG_FDC=n David Ahern
2011-01-14 19:12 ` [Qemu-devel] [PATCH 10/11] config: add CONFIG_APPLESMC David Ahern
2011-01-15 15:44 ` [Qemu-devel] " Paolo Bonzini
2011-01-14 19:12 ` [Qemu-devel] [PATCH 11/11] config: allow none as a configure option to disable all sound cards David Ahern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1295032341-6926-8-git-send-email-daahern@cisco.com \
--to=daahern@cisco.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).