summaryrefslogtreecommitdiffstats
path: root/hw/ppc_oldworld.c
diff options
context:
space:
mode:
authorj_mayer2007-11-04 02:16:04 +0100
committerj_mayer2007-11-04 02:16:04 +0100
commit74e9115560fbdd6342f3e1a42ced6bd76b227f82 (patch)
tree7a195c7564b403f937d683ae58b6f30b84343412 /hw/ppc_oldworld.c
parentFix some compiler warnings. (diff)
downloadqemu-74e9115560fbdd6342f3e1a42ced6bd76b227f82.tar.gz
qemu-74e9115560fbdd6342f3e1a42ced6bd76b227f82.tar.xz
qemu-74e9115560fbdd6342f3e1a42ced6bd76b227f82.zip
Fix PowerMac NVRAM device.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3521 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc_oldworld.c')
-rw-r--r--hw/ppc_oldworld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c
index 7a0850522a..49012cddfb 100644
--- a/hw/ppc_oldworld.c
+++ b/hw/ppc_oldworld.c
@@ -271,13 +271,13 @@ static void ppc_heathrow_init (int ram_size, int vga_ram_size,
adb_kbd_init(&adb_bus);
adb_mouse_init(&adb_bus);
- nvr = macio_nvram_init(&nvram_mem_index);
+ nvr = macio_nvram_init(&nvram_mem_index, 0x2000);
pmac_format_nvram_partition(nvr, 0x2000);
dbdma_init(&dbdma_mem_index);
macio_init(pci_bus, 0x0017, 1, pic_mem_index, dbdma_mem_index,
- cuda_mem_index, nvram_mem_index, 0, NULL);
+ cuda_mem_index, nvr, 0, NULL);
if (usb_enabled) {
usb_ohci_init_pci(pci_bus, 3, -1);