From: Artyom Tarasenko <atar4qemu@gmail.com>
To: qemu-devel@nongnu.org
Cc: blauwirbel@gmail.com, Artyom Tarasenko <atar4qemu@gmail.com>
Subject: [Qemu-devel] [PATCH 2/2] sparc64: Use the correct type of the Mostek NVRAM chip
Date: Sat, 27 Apr 2013 09:12:18 +0200 [thread overview]
Message-ID: <863d361cf3bdf5540ef572938caac3c780328f68.1367046225.git.atar4qemu@gmail.com> (raw)
In-Reply-To: <cover.1367046225.git.atar4qemu@gmail.com>
In-Reply-To: <cover.1367046225.git.atar4qemu@gmail.com>
The sun4u machines use an ISA Mostek chip which has MMIO, uses 1968
as a base year and no IRQ line. So, use the m48t08.
Please note that this patch has its OpenBIOS counterpart.
Together they fix recognising NVRAM in the sun4u machine.
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
---
hw/sparc64/sun4u.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index 5c2bbd4..bfb19d4 100644
--- a/hw/sparc64/sun4u.c
+++ b/hw/sparc64/sun4u.c
@@ -866,7 +866,10 @@ static void sun4uv_init(MemoryRegion *address_space_mem,
fd[i] = drive_get(IF_FLOPPY, 0, i);
}
fdctrl_init_isa(isa_bus, fd);
- nvram = m48t59_init_isa(isa_bus, 0x0074, NVRAM_SIZE, 59);
+
+ /* XXX Ultra-5 has it at the beginning of the EBUS range, but we have
+ * serial port and other isa devices there */
+ nvram = m48t59_init_isa(isa_bus, 0x2000, NVRAM_SIZE, 8);
initrd_size = 0;
initrd_addr = 0;
--
1.7.1
next prev parent reply other threads:[~2013-04-27 7:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 7:12 [Qemu-devel] [PATCH 0/2] sparc64: Fix NVRAM access mode Artyom Tarasenko
2013-04-27 7:12 ` [Qemu-devel] [PATCH 1/2] m48t59: use mmio for the m48t08 model of the m48t59_isa card Artyom Tarasenko
2013-04-27 15:16 ` Andreas Färber
2013-04-27 16:21 ` Artyom Tarasenko
2013-04-27 7:12 ` Artyom Tarasenko [this message]
2013-04-27 11:39 ` [Qemu-devel] [PATCH 0/2] sparc64: Fix NVRAM access mode Blue Swirl
2013-04-27 14:20 ` Artyom Tarasenko
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=863d361cf3bdf5540ef572938caac3c780328f68.1367046225.git.atar4qemu@gmail.com \
--to=atar4qemu@gmail.com \
--cc=blauwirbel@gmail.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).