mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
PREP machines have two IO mappings.
This patch adds support for non-contiguous IO map, which is used by OS/2. It also adds the missing legacy IO ports for the PREP PCI bridge and changes CPU PVR from 74x/75x to 604 to make OS/2 happy. (Jocelyn Mayer) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1381 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
dccfafc4e1
commit
da9b266bb8
2 changed files with 125 additions and 10 deletions
10
hw/pci.c
10
hw/pci.c
|
@ -694,6 +694,16 @@ PCIBus *pci_prep_init(void)
|
|||
s = pci_register_bus();
|
||||
s->set_irq = prep_set_irq;
|
||||
|
||||
register_ioport_write(0xcf8, 4, 4, pci_addr_writel, s);
|
||||
register_ioport_read(0xcf8, 4, 4, pci_addr_readl, s);
|
||||
|
||||
register_ioport_write(0xcfc, 4, 1, pci_data_writeb, s);
|
||||
register_ioport_write(0xcfc, 4, 2, pci_data_writew, s);
|
||||
register_ioport_write(0xcfc, 4, 4, pci_data_writel, s);
|
||||
register_ioport_read(0xcfc, 4, 1, pci_data_readb, s);
|
||||
register_ioport_read(0xcfc, 4, 2, pci_data_readw, s);
|
||||
register_ioport_read(0xcfc, 4, 4, pci_data_readl, s);
|
||||
|
||||
PPC_io_memory = cpu_register_io_memory(0, PPC_PCIIO_read,
|
||||
PPC_PCIIO_write, s);
|
||||
cpu_register_physical_memory(0x80800000, 0x00400000, PPC_io_memory);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue