mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
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>
This commit is contained in:
parent
492ec48dc2
commit
3bb7e02a97
@ -14,6 +14,7 @@
|
|||||||
#include "e500.h"
|
#include "e500.h"
|
||||||
#include "../boards.h"
|
#include "../boards.h"
|
||||||
#include "device_tree.h"
|
#include "device_tree.h"
|
||||||
|
#include "hw/pci.h"
|
||||||
|
|
||||||
static void e500plat_fixup_devtree(PPCE500Params *params, void *fdt)
|
static void e500plat_fixup_devtree(PPCE500Params *params, void *fdt)
|
||||||
{
|
{
|
||||||
@ -40,8 +41,8 @@ static void e500plat_init(QEMUMachineInitArgs *args)
|
|||||||
.kernel_cmdline = kernel_cmdline,
|
.kernel_cmdline = kernel_cmdline,
|
||||||
.initrd_filename = initrd_filename,
|
.initrd_filename = initrd_filename,
|
||||||
.cpu_model = cpu_model,
|
.cpu_model = cpu_model,
|
||||||
.pci_first_slot = 0x11,
|
.pci_first_slot = 0x1,
|
||||||
.pci_nr_slots = 2,
|
.pci_nr_slots = PCI_SLOT_MAX - 1,
|
||||||
.fixup_devtree = e500plat_fixup_devtree,
|
.fixup_devtree = e500plat_fixup_devtree,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user