diff options
author | Richard Henderson <rth@twiddle.net> | 2013-03-31 13:15:19 -0700 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2013-04-27 02:15:55 +0200 |
commit | d6b64b2b606fe0fe5f2208e84ff7a28445de666a (patch) | |
tree | e6cd5963acedbf50a1af190612d6c936899c8af8 | |
parent | fc4d60ee16e9c20404e9970b421ac3e96df4c214 (diff) | |
download | hqemu-d6b64b2b606fe0fe5f2208e84ff7a28445de666a.zip hqemu-d6b64b2b606fe0fe5f2208e84ff7a28445de666a.tar.gz |
tcg: Log the contents of the prologue with -d out_asm
This makes it easier to verify changes to the code
generating the prologue.
[Aurelien: change the format from %i to %zu]
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
-rw-r--r-- | tcg/tcg.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -268,6 +268,16 @@ void tcg_prologue_init(TCGContext *s) tcg_target_qemu_prologue(s); flush_icache_range((tcg_target_ulong)s->code_buf, (tcg_target_ulong)s->code_ptr); + +#ifdef DEBUG_DISAS + if (qemu_loglevel_mask(CPU_LOG_TB_OUT_ASM)) { + size_t size = s->code_ptr - s->code_buf; + qemu_log("PROLOGUE: [size=%zu]\n", size); + log_disas(s->code_buf, size); + qemu_log("\n"); + qemu_log_flush(); + } +#endif } void tcg_set_frame(TCGContext *s, int reg, |