qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/4] target-ppc: use cpu_write_xer() helper in c


From: Alexey Kardashevskiy
Subject: Re: [Qemu-devel] [PATCH 2/4] target-ppc: use cpu_write_xer() helper in cpu_post_load
Date: Fri, 8 Jan 2016 13:25:32 +1100
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 01/07/2016 05:22 AM, Mark Cave-Ayland wrote:
Otherwise some internal xer variables fail to get set post-migration.

Signed-off-by: Mark Cave-Ayland <address@hidden>
---
  target-ppc/machine.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-ppc/machine.c b/target-ppc/machine.c
index 98fc63a..322ce84 100644
--- a/target-ppc/machine.c
+++ b/target-ppc/machine.c
@@ -168,7 +168,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


Reviewed-by: Alexey Kardashevskiy <address@hidden>        


--
Alexey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]