From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>,
Anthony Liguori <anthony@codemonkey.ws>
Subject: [Qemu-devel] [PATCH 2/2] machine type dependant bios
Date: Mon, 30 Sep 2013 12:46:59 +0200 [thread overview]
Message-ID: <1380538019-9091-3-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1380538019-9091-1-git-send-email-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/i386/pc_piix.c | 1 +
hw/i386/pc_q35.c | 1 +
hw/i386/pc_sysfw.c | 4 ++--
include/hw/i386/pc.h | 2 ++
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 907792b..35188a5 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -238,6 +238,7 @@ static void pc_init_pci(QEMUMachineInitArgs *args)
static void pc_compat_1_6(QEMUMachineInitArgs *args)
{
+ pc_default_bios_name = "bios-128k.bin";
has_pci_info = false;
rom_file_in_ram = false;
}
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index ca84e1c..e8b0168 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -222,6 +222,7 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
static void pc_compat_1_6(QEMUMachineInitArgs *args)
{
+ pc_default_bios_name = "bios-128k.bin";
has_pci_info = false;
rom_file_in_ram = false;
}
diff --git a/hw/i386/pc_sysfw.c b/hw/i386/pc_sysfw.c
index e917c83..deb8869 100644
--- a/hw/i386/pc_sysfw.c
+++ b/hw/i386/pc_sysfw.c
@@ -34,7 +34,7 @@
#include "hw/block/flash.h"
#include "sysemu/kvm.h"
-#define BIOS_FILENAME "bios.bin"
+const char *pc_default_bios_name = "bios-256k.bin";
typedef struct PcSysFwDevice {
SysBusDevice busdev;
@@ -112,7 +112,7 @@ static void old_pc_system_rom_init(MemoryRegion *rom_memory, bool isapc_ram_fw)
/* BIOS load */
if (bios_name == NULL) {
- bios_name = BIOS_FILENAME;
+ bios_name = pc_default_bios_name;
}
filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);
if (filename) {
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 9b2ddc4..cf9e47e 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -12,6 +12,8 @@
/* PC-style peripherals (also used by other machines). */
+extern const char *pc_default_bios_name;
+
typedef struct PcPciInfo {
Range w32;
Range w64;
--
1.8.3.1
next prev parent reply other threads:[~2013-09-30 10:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-30 10:46 [Qemu-devel] [RfC PATCH 0/2] seabios: going to 256k size Gerd Hoffmann
2013-09-30 10:46 ` [Qemu-devel] [PATCH 1/2] roms: build two seabios binaries Gerd Hoffmann
2013-09-30 11:12 ` Paolo Bonzini
2013-09-30 13:44 ` Gerd Hoffmann
2013-09-30 14:01 ` Paolo Bonzini
2013-09-30 10:46 ` Gerd Hoffmann [this message]
2013-09-30 22:08 ` [Qemu-devel] [PATCH 2/2] machine type dependant bios Anthony Liguori
2013-09-30 22:43 ` Paolo Bonzini
2013-09-30 22:57 ` Anthony Liguori
2013-10-01 6:27 ` Paolo Bonzini
2013-10-01 15:38 ` Anthony Liguori
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=1380538019-9091-3-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=anthony@codemonkey.ws \
--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).