target/ppc: Properly sync cpu state with new msr in cpu_load_old
commitdafe299cf0249d2a83fd2d9262796a90c50fc1d3
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 15 Mar 2021 18:46:01 +0000 (15 12:46 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 4 May 2021 01:41:24 +0000 (4 11:41 +1000)
tree88ba11dfb00c592c73e7635c4f267974e3a65a1e
parent1828504672cece95f7b38e9e63eb2dfeeb447830
target/ppc: Properly sync cpu state with new msr in cpu_load_old

Match cpu_post_load in using ppc_store_msr to set all of
the cpu state implied by the value of msr.  Do not restore
hflags or hflags_nmsr, as we recompute them in ppc_store_msr.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210315184615.1985590-4-richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/machine.c