From: Aurelien J. <aur...@au...> - 2008-02-27 17:55:03
|
This patch adds support for the -d cpu option, which dump the CPU state before each TB. Index: translate.c =================================================================== RCS file: /cvsroot/hppaqemu/hppaqemu/target-hppa/translate.c,v retrieving revision 1.51 diff -u -d -p -r1.51 translate.c --- translate.c 23 Feb 2008 20:57:32 -0000 1.51 +++ translate.c 26 Feb 2008 22:28:14 -0000 @@ -904,6 +904,9 @@ static int gen_intermediate_code_interna tb->size = last_pc + 4 - pc_start; } #ifdef DEBUG_DISAS + if (loglevel & CPU_LOG_TB_CPU) { + cpu_dump_state(env, logfile, fprintf, 0); + } if (loglevel & CPU_LOG_TB_IN_ASM) { fprintf(logfile, "--------------\n"); fprintf(logfile, "IN: %s\n", lookup_symbol(pc_start)); -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' au...@de... | aur...@au... `- people.debian.org/~aurel32 | www.aurel32.net |