diff options
-rw-r--r-- | exec-all.h | 1 | ||||
-rw-r--r-- | translate-all.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/exec-all.h b/exec-all.h index 08351354ed..58debaa1bf 100644 --- a/exec-all.h +++ b/exec-all.h @@ -62,6 +62,7 @@ extern target_ulong gen_opc_npc[OPC_BUF_SIZE]; extern uint8_t gen_opc_cc_op[OPC_BUF_SIZE]; extern uint8_t gen_opc_instr_start[OPC_BUF_SIZE]; extern target_ulong gen_opc_jump_pc[2]; +extern uint32_t gen_opc_hflags[OPC_BUF_SIZE]; typedef void (GenOpFunc)(void); typedef void (GenOpFunc1)(long); diff --git a/translate-all.c b/translate-all.c index cac91c535b..0de429f5b9 100644 --- a/translate-all.c +++ b/translate-all.c @@ -53,6 +53,8 @@ uint8_t gen_opc_cc_op[OPC_BUF_SIZE]; #elif defined(TARGET_SPARC) target_ulong gen_opc_npc[OPC_BUF_SIZE]; target_ulong gen_opc_jump_pc[2]; +#elif defined(TARGET_MIPS) +uint32_t gen_opc_hflags[OPC_BUF_SIZE]; #endif int code_copy_enabled = 1; @@ -302,6 +304,8 @@ int cpu_restore_state(TranslationBlock *tb, } #elif defined(TARGET_MIPS) env->PC = gen_opc_pc[j]; + env->hflags &= ~MIPS_HFLAG_BMASK; + env->hflags |= gen_opc_hflags[j]; #endif return 0; } |