]> Git Repo - qemu.git/commit - target/ppc/machine.c
target-ppc: force update of msr bits in cpu_post_load
authorMark Cave-Ayland <[email protected]>
Mon, 9 Feb 2015 22:40:48 +0000 (22:40 +0000)
committerAlexander Graf <[email protected]>
Mon, 9 Mar 2015 14:00:05 +0000 (15:00 +0100)
commit2360b6e84f78d41fa0f76555a947148b73645259
treea167c1686e2ded9bb4c3f76e8c971453e8c1d57e
parent2828c4cd92b1c0590b959ec022888b1f6909949a
target-ppc: force update of msr bits in cpu_post_load

Since env->msr has already been restored by the time cpu_post_load is called,
make sure that ppc_store_msr() is explicitly called with all msr bits except
MSR_TGPR marked as invalid.

This solves the issue where MSR flags aren't set correctly when restoring a VM
snapshot, in particular the internal env->excp_prefix value when MSR_EP has
been altered by a guest.

Signed-off-by: Mark Cave-Ayland <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
target-ppc/machine.c
This page took 0.025814 seconds and 4 git commands to generate.