spapr_cpu_core: rewrite machine type sanity check
commite7cca3e94f7595b7b5a493a87146e782831611d7
authorGreg Kurz <groug@kaod.org>
Thu, 12 Oct 2017 16:30:23 +0000 (12 18:30 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Oct 2017 23:34:01 +0000 (17 10:34 +1100)
tree1c96ff476233e23ada17202f0c2755cbb5b99001
parentf7d6bfcdc0fe49040aac3ac131a319cb5427957e
spapr_cpu_core: rewrite machine type sanity check

This makes the code easier to understand and it is consistent with what
we already do for PHBs.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c