summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorBernhard Beschow2022-10-03 22:31:35 +0200
committerDaniel Henrique Barboza2022-10-17 21:15:09 +0200
commit47a0b1dff7e9c32808ca2c8a007a4dfa7bf273f1 (patch)
treeb92b1aa4689e23bded5a49a981b1aa90271e6f6d /hw
parenthw/ppc/mpc8544ds: Rename wrongly named method (diff)
downloadqemu-47a0b1dff7e9c32808ca2c8a007a4dfa7bf273f1.tar.gz
qemu-47a0b1dff7e9c32808ca2c8a007a4dfa7bf273f1.tar.xz
qemu-47a0b1dff7e9c32808ca2c8a007a4dfa7bf273f1.zip
hw/ppc/mpc8544ds: Add platform bus
Models the real device more closely. Address and size values are taken from mpc8544.dts from the linux-5.17.7 tree. The IRQ range is taken from e500plat.c. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20221003203142.24355-7-shentey@gmail.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/mpc8544ds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ppc/mpc8544ds.c b/hw/ppc/mpc8544ds.c
index 8e674ad195..9c81477698 100644
--- a/hw/ppc/mpc8544ds.c
+++ b/hw/ppc/mpc8544ds.c
@@ -14,6 +14,7 @@
#include "sysemu/device_tree.h"
#include "hw/ppc/openpic.h"
#include "qemu/error-report.h"
+#include "qemu/units.h"
#include "cpu.h"
static void mpc8544ds_fixup_devtree(void *fdt)
@@ -45,6 +46,11 @@ static void mpc8544ds_machine_class_init(ObjectClass *oc, void *data)
pmc->pci_nr_slots = 2;
pmc->fixup_devtree = mpc8544ds_fixup_devtree;
pmc->mpic_version = OPENPIC_MODEL_FSL_MPIC_20;
+ pmc->has_platform_bus = true;
+ pmc->platform_bus_base = 0xFF800000ULL;
+ pmc->platform_bus_size = 8 * MiB;
+ pmc->platform_bus_first_irq = 5;
+ pmc->platform_bus_num_irqs = 10;
pmc->ccsrbar_base = 0xE0000000ULL;
pmc->pci_mmio_base = 0xC0000000ULL;
pmc->pci_mmio_bus_base = 0xC0000000ULL;