summaryrefslogtreecommitdiff
path: root/target-sh4/translate.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2011-01-14 20:39:18 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-01-14 20:39:18 +0100
commitbe15c50d8e20edf9338c689764e6398ccec92ed9 (patch)
tree3c9d3003308ea3f9d18ebede0d309757b95ac9be /target-sh4/translate.c
parent6f396c8f38fb47dda5622880f7f2c646b145bc23 (diff)
downloadqemu-be15c50d8e20edf9338c689764e6398ccec92ed9.tar.gz
qemu-be15c50d8e20edf9338c689764e6398ccec92ed9.tar.bz2
qemu-be15c50d8e20edf9338c689764e6398ccec92ed9.zip
target-sh4: log instructions start in TCG code
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r--target-sh4/translate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 65ea7f61c7..b3cbe91d21 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -1892,6 +1892,10 @@ static void decode_opc(DisasContext * ctx)
{
uint32_t old_flags = ctx->flags;
+ if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) {
+ tcg_gen_debug_insn_start(ctx->pc);
+ }
+
_decode_opc(ctx);
if (old_flags & (DELAY_SLOT | DELAY_SLOT_CONDITIONAL)) {