Files
qemu-ios/hw
Greg Kurz d76f2da7a5 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>
2019-12-17 10:58:49 +11:00
..
2019-11-23 15:51:48 +01:00
2019-08-16 13:31:52 +02:00
2019-08-21 09:13:37 +02:00
2019-08-16 13:31:52 +02:00
2019-12-16 13:04:46 +01:00
2019-12-16 13:04:46 +01:00
2019-08-16 13:31:53 +02:00
2019-12-16 10:46:34 +00:00
2019-12-14 10:25:50 +01:00
2019-12-17 10:39:48 +11:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:53 +02:00
2019-11-05 18:52:29 +01:00
2019-12-16 13:16:15 +01:00
2019-12-16 10:46:34 +00:00
2019-10-28 19:06:47 +01:00
2019-11-19 10:01:34 +01:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2019-12-14 10:22:38 +01:00
2019-08-16 13:31:53 +02:00
2019-10-18 20:38:10 -07:00