]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/translate_init.c.inc
ppc: spapr: Move VCPU ID calculation into sPAPR
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Thu, 31 Aug 2017 06:38:46 +0000 (16:38 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 7 Sep 2017 23:30:55 +0000 (09:30 +1000)
commit7cca3e466eb0baa36d1cc29d5aeb5da74a260711
tree0f438c8140d51fc127fa8b991bf94003e6f85741
parentaef779605779579afbafffaba1e3a06ea89c3bdd
ppc: spapr: Move VCPU ID calculation into sPAPR

Move the calculation of a CPU's VCPU ID out of the generic PPC code
(ppc_cpu_realizefn()) and into sPAPR specific code
(spapr_cpu_core_realize()) where it belongs.

Unfortunately, due to the way things are ordered, we still need to
default the VCPU ID in ppc_cpu_realizfn() but at least doing that
doesn't require any interaction with sPAPR.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c
target/ppc/translate_init.c