s390x: Introduce machine definition macros
commit4fca6548723f198ee927470ca4864e8f2f1fbcc5
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Thu, 3 Mar 2016 11:48:34 +0000 (3 12:48 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 10 Mar 2016 09:37:16 +0000 (10 10:37 +0100)
tree8506a21dd70c70a4b5bd0743f19f603869abd19d
parent3a3c752f0ba72e57a2f85e9bdce217673be14700
s390x: Introduce machine definition macros

Most of the machine definition code looks the same between different
machine versions. The new DEFINE_CCW_MACHINE macro makes defining a
new machine easier by inserting standard machine version
definitions. This also makes it possible to propagate values between
machine versions.

The patch is inspired by code from hw/ppc/spapr.c

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-virtio-ccw.c