[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] sparc64: Use the correct type of the Mostek NVR
From: |
Artyom Tarasenko |
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 |
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 <address@hidden>
---
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