mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
ppc/ppc405: QOM'ify PLB
PLB is currently modeled as a simple DCR device. Also drop the ppc4xx_plb_init() helper and adapt the sam460ex machine. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> [balaton: ppc4xx_dcr_register changes] Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Message-Id: <c4256d1bffca86fe1d696aa9c56732e5f563e114.1660746880.git.balaton@eik.bme.hu> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
2841430e6a
commit
695bce07dc
3 changed files with 50 additions and 30 deletions
|
@ -309,7 +309,9 @@ static void sam460ex_init(MachineState *machine)
|
|||
ppc_dcr_init(env, NULL, NULL);
|
||||
|
||||
/* PLB arbitrer */
|
||||
ppc4xx_plb_init(env);
|
||||
dev = qdev_new(TYPE_PPC405_PLB);
|
||||
ppc4xx_dcr_realize(PPC4xx_DCR_DEVICE(dev), cpu, &error_fatal);
|
||||
object_unref(OBJECT(dev));
|
||||
|
||||
/* interrupt controllers */
|
||||
for (i = 0; i < ARRAY_SIZE(uic); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue