diff options
| author | David Gibson | 2015-12-07 04:23:20 +0100 |
|---|---|---|
| committer | David Gibson | 2016-01-11 05:29:05 +0100 |
| commit | 5013c5474658c1adea6d5448979dfe399b27e194 (patch) | |
| tree | 09ac51d920a4b5d8fc43903eac2f95000ed456ee /include/exec | |
| parent | pseries: Use SET_MACHINE_COMPAT (diff) | |
| download | qemu-5013c5474658c1adea6d5448979dfe399b27e194.tar.gz qemu-5013c5474658c1adea6d5448979dfe399b27e194.tar.xz qemu-5013c5474658c1adea6d5448979dfe399b27e194.zip | |
pseries: DEFINE_SPAPR_MACHINE
At the moment all the class_init functions and TypeInfo structures for the
various versioned pseries machine types are open-coded. As more versions
are created this is getting increasingly clumsy.
This patch borrows the approach used in PC, using a DEFINE_SPAPR_MACHINE()
macro to construct most of the boilerplate from simpler 'class_options' and
'instance_options' functions.
This patch makes a small semantic change - the versioned machine types are
now registered through machine_init() instead of type_init(). Since the
new way is how PC already did it, I'm assuming that's correct.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
