diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-21 22:46:48 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-21 22:46:48 +0000 |
commit | 91d848ebf3bc7fd73fb1a4fc11bdb04225b3f37d (patch) | |
tree | a432f2eda0f801085ed8aa208ca32359b5d456ae /hw/ppc_chrp.c | |
parent | e2733d20b2c8fade7e81aebb34e4e1db821d472f (diff) |
disable PCI device for PMAC
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@966 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc_chrp.c')
-rw-r--r-- | hw/ppc_chrp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/ppc_chrp.c b/hw/ppc_chrp.c index fce4348328..93835322fb 100644 --- a/hw/ppc_chrp.c +++ b/hw/ppc_chrp.c @@ -36,6 +36,7 @@ static int dbdma_mem_index; static int cuda_mem_index; static int ide0_mem_index; static int ide1_mem_index; +static int openpic_mem_index; /* DBDMA: currently no op - should suffice right now */ @@ -87,6 +88,7 @@ static void macio_map(PCIDevice *pci_dev, int region_num, cpu_register_physical_memory(addr + 0x16000, 0x2000, cuda_mem_index); cpu_register_physical_memory(addr + 0x1f000, 0x1000, ide0_mem_index); cpu_register_physical_memory(addr + 0x20000, 0x1000, ide1_mem_index); + cpu_register_physical_memory(addr + 0x40000, 0x40000, openpic_mem_index); } static void macio_init(PCIBus *bus) @@ -191,7 +193,7 @@ void ppc_chrp_init(int ram_size, int vga_ram_size, int boot_device, /* init basic PC hardware */ vga_initialize(pci_bus, ds, phys_ram_base + ram_size, ram_size, vga_ram_size); - openpic = openpic_init(pci_bus, 0x00000000, 0xF0000000, 1); + openpic = openpic_init(NULL, &openpic_mem_index, 1); pci_pmac_set_openpic(pci_bus, openpic); /* XXX: suppress that */ |