ppc: spapr: define core types statically
authorIgor Mammedov <imammedo@redhat.com>
Mon, 9 Oct 2017 19:51:00 +0000 (21:51 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Oct 2017 23:34:00 +0000 (10:34 +1100)
commit44cd95e31a94ef39c8888ad9e8f5fec66dae31bb
tree626dfaa0dbdec587a8378207b1d8f17d0833c09e
parentb8e999673bd479eed7e71a5e8bc468bca4e31d7d
ppc: spapr: define core types statically

spapr core type definition doesn't have any fields that
require it to be defined at runtime. So replace code
that fills in TypeInfo at runtime with static TypeInfo
array that does the same at complie time.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c
include/hw/ppc/spapr_cpu_core.h