From: John Arbuckle <programmingkidx@gmail.com>
To: groug@kaod.org, david@gibson.dropbear.id.au, qemu-ppc@nongnu.org,
qemu-devel@nongnu.org, hsp.cat7@gmail.com
Cc: John Arbuckle <programmingkidx@gmail.com>
Subject: [PATCH] Report any problems with loading the VGA driver for PPC Macintosh targets
Date: Fri, 27 Aug 2021 14:14:29 -0400 [thread overview]
Message-ID: <20210827181429.23609-1-programmingkidx@gmail.com> (raw)
I was having a problem with missing video resolutions in my Mac OS 9 VM. When I
ran QEMU it gave no indication as to why these resolutions were missing. I found
out that the OpenFirmware VGA driver was not being loaded. To prevent anyone from
going thru the same trouble I went thru I added messages that the user can see
when a problem takes place with loading this driver in the future.
Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
---
hw/ppc/mac_newworld.c | 6 ++++++
hw/ppc/mac_oldworld.c | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
index 7bb7ac3997..c1960452b8 100644
--- a/hw/ppc/mac_newworld.c
+++ b/hw/ppc/mac_newworld.c
@@ -526,8 +526,14 @@ static void ppc_core99_init(MachineState *machine)
if (g_file_get_contents(filename, &ndrv_file, &ndrv_size, NULL)) {
fw_cfg_add_file(fw_cfg, "ndrv/qemu_vga.ndrv", ndrv_file, ndrv_size);
+ } else {
+ printf("Warning: failed to load driver %s. This may cause video"
+ " problems.\n");
}
g_free(filename);
+ } else {
+ printf("Warning: driver %s not found. This may cause video problems.\n",
+ NDRV_VGA_FILENAME);
}
qemu_register_boot_set(fw_cfg_boot_set, fw_cfg);
diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c
index de2be960e6..96603fe9cf 100644
--- a/hw/ppc/mac_oldworld.c
+++ b/hw/ppc/mac_oldworld.c
@@ -367,8 +367,14 @@ static void ppc_heathrow_init(MachineState *machine)
if (g_file_get_contents(filename, &ndrv_file, &ndrv_size, NULL)) {
fw_cfg_add_file(fw_cfg, "ndrv/qemu_vga.ndrv", ndrv_file, ndrv_size);
+ } else {
+ printf("Warning: failed to load driver %s. This may cause video"
+ " problems.\n");
}
g_free(filename);
+ } else {
+ printf("Warning: driver %s not found. This may cause video problems.\n",
+ NDRV_VGA_FILENAME);
}
qemu_register_boot_set(fw_cfg_boot_set, fw_cfg);
--
2.24.3 (Apple Git-128)
next reply other threads:[~2021-08-27 18:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-27 18:14 John Arbuckle [this message]
2021-08-27 21:15 ` [PATCH] Report any problems with loading the VGA driver for PPC Macintosh targets BALATON Zoltan
2021-08-28 5:29 ` David Gibson
2021-08-29 10:16 ` Mark Cave-Ayland
2021-08-29 12:17 ` Peter Maydell
2021-08-29 13:51 ` Programmingkid
2021-08-30 20:29 ` Programmingkid
2021-08-30 20:59 ` Peter Maydell
2021-08-30 21:47 ` BALATON Zoltan
2021-08-31 15:52 ` Programmingkid
2021-08-31 21:08 ` BALATON Zoltan
2021-08-31 21:33 ` Programmingkid
2021-09-01 9:08 ` BALATON Zoltan
2021-09-01 12:23 ` Programmingkid
2021-08-31 15:50 ` Programmingkid
2021-08-31 15:57 ` Peter Maydell
2021-08-31 16:51 ` Programmingkid
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=20210827181429.23609-1-programmingkidx@gmail.com \
--to=programmingkidx@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=hsp.cat7@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).