mac99: Add motherboard devices before PCI cards
authorBALATON Zoltan <balaton@eik.bme.hu>
Mon, 23 Jun 2014 22:03:48 +0000 (00:03 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 27 Jun 2014 11:48:24 +0000 (13:48 +0200)
commita0bb2a5fa095c88819eb6d8e08b1630c8d23c261
tree2aae86f2599fc150e832f707f68864bfeed68764
parentc99b6f879a9b29b89a9c88237119d3801b086051
mac99: Add motherboard devices before PCI cards

Change the order of creating devices for New World Mac emulation so
that devices on the motherboard are added first and PCI cards (VGA and
NIC) come later. As a side effect, this also causes OpenBIOS to map
the motherboard devices into the MMIO space to the same addresses as
on real hardware and allow clients that hardcode these addresses (e.g.
MorphOS) to find and use them until OpenBIOS is tought to map devices
to specific addresses. (On real hardware the graphics and network
cards are really on separate buses but we don't model that yet.) This
brings the memory map closer to what is found on PowerMac3,1.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/mac_newworld.c