From: Mark Cave-Ayland Date: Wed, 6 Jan 2016 18:22:11 +0000 (+0000) Subject: target-ppc: use cpu_write_xer() helper in cpu_post_load X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6a9620e60cc1b16dba9ee9d9d8cb374e4303c072;p=qmiga%2Fqemu.git target-ppc: use cpu_write_xer() helper in cpu_post_load Otherwise some internal xer variables fail to get set post-migration. Signed-off-by: Mark Cave-Ayland Reviewed-by: Alexey Kardashevskiy Signed-off-by: David Gibson --- diff --git a/target-ppc/machine.c b/target-ppc/machine.c index 8e30b7a8dc..8cabc77883 100644 --- a/target-ppc/machine.c +++ b/target-ppc/machine.c @@ -169,7 +169,7 @@ static int cpu_post_load(void *opaque, int version_id) env->spr[SPR_PVR] = env->spr_cb[SPR_PVR].default_value; env->lr = env->spr[SPR_LR]; env->ctr = env->spr[SPR_CTR]; - env->xer = env->spr[SPR_XER]; + cpu_write_xer(env, env->spr[SPR_XER]); #if defined(TARGET_PPC64) env->cfar = env->spr[SPR_CFAR]; #endif