]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr_cpu_core.c
spapr: Make a helper to set up cpu entry point state
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 1 May 2018 06:22:49 +0000 (16:22 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 May 2018 05:00:37 +0000 (15:00 +1000)
commit84369f639ec0ae08b5238f9abe383e8cd4998e98
treecb55d0400694075628ce16530348584303e4fc0a
parent982489180b72a41f008bbcf761ba1ed3f5f916ba
spapr: Make a helper to set up cpu entry point state

Under PAPR, only the boot CPU is active when the system starts.  Other cpus
must be explicitly activated using an RTAS call.  The entry state for the
boot and secondary cpus isn't identical, but it has some things in common.
We're going to add a bit more common setup later, too, so to simplify
make a helper which sets up the common entry state for both boot and
secondary cpu threads.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/spapr.c
hw/ppc/spapr_cpu_core.c
hw/ppc/spapr_rtas.c
include/hw/ppc/spapr_cpu_core.h