diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-13 17:34:37 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-13 17:34:37 +0000 |
commit | 6e0374f6b5a1cb1600f9d25e9309bc550748128a (patch) | |
tree | d31abb378dcf908fc9db7ecee24878017468c858 /translate.c | |
parent | 9e5f5284b3b452ace0097c5171d369be46847e74 (diff) |
debug print
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@329 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'translate.c')
-rw-r--r-- | translate.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/translate.c b/translate.c index 72b4d24b79..68c76224a3 100644 --- a/translate.c +++ b/translate.c @@ -182,13 +182,14 @@ int cpu_restore_state(TranslationBlock *tb, #ifdef DEBUG_DISAS if (loglevel) { int i; + fprintf(logfile, "RESTORE:\n"); for(i=0;i<=j; i++) { if (gen_opc_instr_start[i]) { - fprintf(logfile, "0x%04x: 0x%08x", i, gen_opc_pc[i]); + fprintf(logfile, "0x%04x: 0x%08x\n", i, gen_opc_pc[i]); } } - fprintf(logfile, "j=0x%x eip=0x%lx cs_base=%lx\n", - j, gen_opc_pc[j] - tb->cs_base, tb->cs_base); + fprintf(logfile, "spc=0x%08lx j=0x%x eip=0x%lx cs_base=%lx\n", + searched_pc, j, gen_opc_pc[j] - tb->cs_base, tb->cs_base); } #endif env->eip = gen_opc_pc[j] - tb->cs_base; |