Add debug tracing feature
It's disabled by default, use -DUNICORN_TRACER=on to enable it
This commit is contained in:
@@ -1619,7 +1619,9 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
|
||||
tcg_func_start(tcg_ctx);
|
||||
|
||||
tcg_ctx->cpu = env_cpu(env);
|
||||
UC_TRACE_START(UC_TRACE_TB_TRANS);
|
||||
gen_intermediate_code(cpu, tb, max_insns);
|
||||
UC_TRACE_END(UC_TRACE_TB_TRANS, "[uc] translate tb 0x%" PRIx64 ": ", tb->pc);
|
||||
tcg_ctx->cpu = NULL;
|
||||
|
||||
/* generate machine code */
|
||||
|
||||
Reference in New Issue
Block a user