diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2016-01-06 18:22:11 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:30:22 -0600 |
commit | 8757fa493d17cf7c32694c5cd4f6be5c801bc4de (patch) | |
tree | 4875fbcc29f80ddcf40775d9f614218e37cca023 /target-ppc/machine.c | |
parent | 1bb4c70cbb220dfb4140440f1b7488757f2e11a5 (diff) | |
download | hqemu-8757fa493d17cf7c32694c5cd4f6be5c801bc4de.zip hqemu-8757fa493d17cf7c32694c5cd4f6be5c801bc4de.tar.gz |
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 <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/machine.c')
-rw-r--r-- | target-ppc/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/machine.c b/target-ppc/machine.c index 8e30b7a..8cabc77 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 |