ppc/spapr: Add a nested state struct
commitc709e8eacd5578f84c0dffbfe65a743a281d1d46
authorNicholas Piggin <npiggin@gmail.com>
Tue, 20 Jun 2023 10:57:35 +0000 (20 20:57 +1000)
committerCédric Le Goater <clg@kaod.org>
Sun, 25 Jun 2023 20:41:30 +0000 (25 22:41 +0200)
treeb24d8819bd2b23b0cb19f15c89538a06eec2a2da
parentcb2f6c3d69ea5b5bdc37c8330266ab67db629fc5
ppc/spapr: Add a nested state struct

Rather than use a copy of CPUPPCState to store the host state while
the environment has been switched to the L2, use a new struct for
this purpose.

Have helper functions to save and load this host state.

Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr_hcall.c
include/hw/ppc/spapr_cpu_core.h