diff options
author | Greg Kurz <groug@kaod.org> | 2019-12-13 12:59:50 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-12-17 10:58:49 +1100 |
commit | d76f2da7a5b6330fba70f2c14f209de92e26abab (patch) | |
tree | bb3b48f8fb4040c991a277aa5a019ae20c530513 /hw/pci-host | |
parent | 248e4e924e873ffb36e9af725281f20614c58062 (diff) | |
download | qemu-d76f2da7a5b6330fba70f2c14f209de92e26abab.zip qemu-d76f2da7a5b6330fba70f2c14f209de92e26abab.tar.gz qemu-d76f2da7a5b6330fba70f2c14f209de92e26abab.tar.bz2 |
ppc/pnv: Introduce PnvMachineClass and PnvMachineClass::compat
The pnv_dt_create() function generates different contents for the
"compatible" property of the root node in the DT, depending on the
CPU type. This is open coded with multiple ifs using pnv_is_powerXX()
helpers.
It seems cleaner to achieve with QOM. Introduce a base class for the
powernv machine and a compat attribute that each child class can use
to provide the value for the "compatible" property.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157623839085.360005.4046508784077843216.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[dwg: Folded in small fix Greg spotted after posting]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/pci-host')
0 files changed, 0 insertions, 0 deletions