qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 08/20] target-sh4: Add flags state to insn_start


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 08/20] target-sh4: Add flags state to insn_start
Date: Tue, 1 Sep 2015 22:51:51 -0700

Signed-off-by: Richard Henderson <address@hidden>
---
 target-sh4/cpu.h       | 1 +
 target-sh4/translate.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h
index 34bb3d7..4fc7b1d 100644
--- a/target-sh4/cpu.h
+++ b/target-sh4/cpu.h
@@ -122,6 +122,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,
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 645e9d4..740bf66 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -1896,7 +1896,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);
 
         if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO)) {
             gen_io_start();
-- 
2.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]