]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-mips/translate.c
Factorize code in translate.c
[mirror_qemu.git] / target-mips / translate.c
index eeb08f60859b2c720c7d430b7eb866c64e8388ee..a5def256c4cf86005b3669a80507f18b7abd688d 100644 (file)
@@ -6943,3 +6943,11 @@ void cpu_reset (CPUMIPSState *env)
 #endif
     cpu_mips_register(env, env->cpu_model);
 }
+
+void gen_pc_load(CPUState *env, TranslationBlock *tb,
+                unsigned long searched_pc, int pc_pos, void *puc)
+{
+    env->PC[env->current_tc] = gen_opc_pc[pc_pos];
+    env->hflags &= ~MIPS_HFLAG_BMASK;
+    env->hflags |= gen_opc_hflags[pc_pos];
+}