aboutsummaryrefslogtreecommitdiff
path: root/translate-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'translate-all.c')
-rw-r--r--translate-all.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/translate-all.c b/translate-all.c
index ff9e037bb0..b02c87a221 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -190,9 +190,9 @@ int cpu_restore_state(TranslationBlock *tb,
#elif defined(TARGET_ARM)
env->regs[15] = gen_opc_pc[j];
#elif defined(TARGET_SPARC)
- env->pc = gen_opc_pc[j];
+ env->pc = gen_opc_pc[j];
+#elif defined(TARGET_PPC)
+ env->nip = gen_opc_pc[j];
#endif
return 0;
}
-
-