pseries: Restructure class_options functions
commitfc9f38c3c0f42b7e98957b646976ee5b63f23806
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 7 Dec 2015 03:27:21 +0000 (7 14:27 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 11 Jan 2016 04:29:05 +0000 (11 15:29 +1100)
tree7fdba54d2cd5084462bf93ddddf739ceba378a43
parent5013c5474658c1adea6d5448979dfe399b27e194
pseries: Restructure class_options functions

Currently each of the *_class_options() functions for the pseries-2.1 ..
pseries-2.5 machine types are standalone.  This will become harder to
maintain as new versions are added.

This patch restructures them similarly to x86 where each function calls
the one from the next version, then overrides anything necessary for
compatibility with the specific version and older.

The default behaviour - that for the most recent machine are set up in
the base class initializer spapr_machine_class_init().  Previously it had
some things set up to default to older behaviour with the more recent
machines overriding it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
hw/ppc/spapr.c