From: Daniel Henrique Barboza Date: Thu, 11 Aug 2022 16:39:49 +0000 (-0300) Subject: ppc/pnv: user creatable pnv-phb for powernv10 X-Git-Tag: v7.2.0-rc0~100^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1327fde3556aeea17f721f4fa2bb8bcf13b2038;p=thirdparty%2Fqemu.git ppc/pnv: user creatable pnv-phb for powernv10 Given that powernv9 and powernv10 uses the same pnv-phb backend, the logic to allow user created pnv-phbs for powernv10 is already in place. Let's flip the switch. Reviewed-by: Cédric Le Goater Signed-off-by: Daniel Henrique Barboza Reviewed-by: Frederic Barrat Message-Id: <20220811163950.578927-11-danielhb413@gmail.com> --- diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index c063d01f8da..354aa289d18 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -2251,6 +2251,8 @@ static void pnv_machine_power10_class_init(ObjectClass *oc, void *data) pmc->dt_power_mgt = pnv_dt_power_mgt; xfc->match_nvt = pnv10_xive_match_nvt; + + machine_class_allow_dynamic_sysbus_dev(mc, TYPE_PNV_PHB); } static bool pnv_machine_get_hb(Object *obj, Error **errp)