diff options
author | Alexander Graf <agraf@suse.de> | 2012-12-12 14:58:30 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-12-14 13:12:57 +0100 |
commit | 3bb7e02a9725a24e5bf915b35f914f82f5b07a1f (patch) | |
tree | d0b79633b7b3d31db4c88850ad52d5d522419768 /hw/ppc/e500plat.c | |
parent | 492ec48dc2d99ca13b24d554e1970af7e2581e23 (diff) | |
download | qemu-3bb7e02a9725a24e5bf915b35f914f82f5b07a1f.zip qemu-3bb7e02a9725a24e5bf915b35f914f82f5b07a1f.tar.gz qemu-3bb7e02a9725a24e5bf915b35f914f82f5b07a1f.tar.bz2 |
PPC: E500plat: Make a lot of PCI slots available
The ppce500 machine doesn't have to stick to hardware limitations,
as it's defined as being fully device tree based.
Thus we can change the initial PCI slot ID to 0x1 which gives us a
whopping 31 PCI devices we can support with this machine now!
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/e500plat.c')
-rw-r--r-- | hw/ppc/e500plat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ppc/e500plat.c b/hw/ppc/e500plat.c index 9365213..2992bd9 100644 --- a/hw/ppc/e500plat.c +++ b/hw/ppc/e500plat.c @@ -14,6 +14,7 @@ #include "e500.h" #include "../boards.h" #include "device_tree.h" +#include "hw/pci.h" static void e500plat_fixup_devtree(PPCE500Params *params, void *fdt) { @@ -40,8 +41,8 @@ static void e500plat_init(QEMUMachineInitArgs *args) .kernel_cmdline = kernel_cmdline, .initrd_filename = initrd_filename, .cpu_model = cpu_model, - .pci_first_slot = 0x11, - .pci_nr_slots = 2, + .pci_first_slot = 0x1, + .pci_nr_slots = PCI_SLOT_MAX - 1, .fixup_devtree = e500plat_fixup_devtree, }; |