Skip to content

Commit

Permalink
target-sh4: Add flags state to insn_start
Browse files Browse the repository at this point in the history
Reviewed-by: Aurelien Jarno <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
  • Loading branch information
rth7680 committed Oct 7, 2015
1 parent a3fd522 commit 07f3c16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions target-sh4/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ typedef struct tlb_t {
#define ITLB_SIZE 4

#define NB_MMU_MODES 2
#define TARGET_INSN_START_EXTRA_WORDS 1

enum sh_features {
SH_FEATURE_SH4A = 1,
Expand Down
2 changes: 1 addition & 1 deletion target-sh4/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ gen_intermediate_code_internal(SuperHCPU *cpu, TranslationBlock *tb,
tcg_ctx.gen_opc_instr_start[ii] = 1;
tcg_ctx.gen_opc_icount[ii] = num_insns;
}
tcg_gen_insn_start(ctx.pc);
tcg_gen_insn_start(ctx.pc, ctx.flags);
num_insns++;

if (unlikely(cpu_breakpoint_test(cs, ctx.pc, BP_ANY))) {
Expand Down

0 comments on commit 07f3c16

Please sign in to comment.