aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2009-09-28 13:03:30 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-09-28 13:03:30 +0200
commit618b0fe9ab5538d4b0ca1e213d7bd77684d01d4d (patch)
treeb0f275c61083f9404ca5fd0fb99a6ab21b4fe183 /target-mips
parentWin32: avoid a warning (diff)
downloadqemu-kvm-618b0fe9ab5538d4b0ca1e213d7bd77684d01d4d.tar.gz
qemu-kvm-618b0fe9ab5538d4b0ca1e213d7bd77684d01d4d.tar.bz2
qemu-kvm-618b0fe9ab5538d4b0ca1e213d7bd77684d01d4d.zip
target-mips: log instructions start in TCG code
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/translate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index aabb69c2d..42a5753e2 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -7660,6 +7660,10 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
gen_goto_tb(ctx, 1, ctx->pc + 4);
gen_set_label(l1);
}
+
+ if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP)))
+ tcg_gen_debug_insn_start(ctx->pc);
+
op = MASK_OP_MAJOR(ctx->opcode);
rs = (ctx->opcode >> 21) & 0x1f;
rt = (ctx->opcode >> 16) & 0x1f;