ppc/spapr: load and store l2 state with helper functions
commitcb4e61a33b7585642a8a7ff9e5b3b78599bcc582
authorNicholas Piggin <npiggin@gmail.com>
Tue, 20 Jun 2023 10:57:36 +0000 (20 20:57 +1000)
committerCédric Le Goater <clg@kaod.org>
Sun, 25 Jun 2023 20:41:30 +0000 (25 22:41 +0200)
tree4eb01ea2874fd4325f6a22c3cac7d8342c65b2d1
parentc709e8eacd5578f84c0dffbfe65a743a281d1d46
ppc/spapr: load and store l2 state with helper functions

Arguably this is just shuffling around register accesses, but one nice
thing it does is allow the exit to save away the L2 state then switch
the environment to the L1 before copying L2 data back to the L1, which
logically flows more naturally and simplifies the error paths.

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