ppc/spapr: Refactor h_client_architecture_support() CPU parsing code
commit7386ae6372cc07c77a39cb3aa185848b43f7ae34
authorThomas Huth <thuth@redhat.com>
Tue, 7 Jun 2016 15:39:36 +0000 (7 17:39 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 14 Jun 2016 00:41:37 +0000 (14 10:41 +1000)
tree2426abee9277901e7dbc9958743f189ee67b549f
parent2c96c379ac7a22424c25d65b73e81b860f902868
ppc/spapr: Refactor h_client_architecture_support() CPU parsing code

The h_client_architecture_support() function has become quite big
and nested already. So factor out the code that takes care of the
sPAPR compatibility PVRs (which will be modified by the following
patches).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_hcall.c