]> git.proxmox.com Git - qemu.git/blobdiff - translate-all.c
full system SPARC emulation (Blue Swirl)
[qemu.git] / translate-all.c
index be3039c2c956ddd31849e1d5d32cafc223afeef7..1fbed41340ddc539951e6fd4ae449f8032c18014 100644 (file)
@@ -46,6 +46,8 @@ uint32_t gen_opc_pc[OPC_BUF_SIZE];
 uint8_t gen_opc_instr_start[OPC_BUF_SIZE];
 #if defined(TARGET_I386)
 uint8_t gen_opc_cc_op[OPC_BUF_SIZE];
+#elif defined(TARGET_SPARC)
+uint32_t gen_opc_npc[OPC_BUF_SIZE];
 #endif
 
 int code_copy_enabled = 1;
@@ -208,6 +210,7 @@ int cpu_restore_state(TranslationBlock *tb,
 #elif defined(TARGET_SPARC)
     /* XXX: restore npc too */
     env->pc = gen_opc_pc[j];
+    env->npc = gen_opc_npc[j];
 #elif defined(TARGET_PPC)
     {
         int type;