Commit 6e0374f6b5a1cb1600f9d25e9309bc550748128a

Authored by bellard
1 parent 9e5f5284

debug print


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@329 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 3 deletions
translate.c
@@ -182,13 +182,14 @@ int cpu_restore_state(TranslationBlock *tb, @@ -182,13 +182,14 @@ int cpu_restore_state(TranslationBlock *tb,
182 #ifdef DEBUG_DISAS 182 #ifdef DEBUG_DISAS
183 if (loglevel) { 183 if (loglevel) {
184 int i; 184 int i;
  185 + fprintf(logfile, "RESTORE:\n");
185 for(i=0;i<=j; i++) { 186 for(i=0;i<=j; i++) {
186 if (gen_opc_instr_start[i]) { 187 if (gen_opc_instr_start[i]) {
187 - fprintf(logfile, "0x%04x: 0x%08x", i, gen_opc_pc[i]); 188 + fprintf(logfile, "0x%04x: 0x%08x\n", i, gen_opc_pc[i]);
188 } 189 }
189 } 190 }
190 - fprintf(logfile, "j=0x%x eip=0x%lx cs_base=%lx\n",  
191 - j, gen_opc_pc[j] - tb->cs_base, tb->cs_base); 191 + fprintf(logfile, "spc=0x%08lx j=0x%x eip=0x%lx cs_base=%lx\n",
  192 + searched_pc, j, gen_opc_pc[j] - tb->cs_base, tb->cs_base);
192 } 193 }
193 #endif 194 #endif
194 env->eip = gen_opc_pc[j] - tb->cs_base; 195 env->eip = gen_opc_pc[j] - tb->cs_base;