182 |
#ifdef DEBUG_DISAS |
#ifdef DEBUG_DISAS |
183 |
if (loglevel) { |
if (loglevel) { |
184 |
int i; |
int i; |
185 |
|
fprintf(logfile, "RESTORE:\n"); |
186 |
for(i=0;i<=j; i++) { |
for(i=0;i<=j; i++) { |
187 |
if (gen_opc_instr_start[i]) { |
if (gen_opc_instr_start[i]) { |
188 |
fprintf(logfile, "0x%04x: 0x%08x", i, gen_opc_pc[i]); |
fprintf(logfile, "0x%04x: 0x%08x\n", i, gen_opc_pc[i]); |
189 |
} |
} |
190 |
} |
} |
191 |
fprintf(logfile, "j=0x%x eip=0x%lx cs_base=%lx\n", |
fprintf(logfile, "spc=0x%08lx j=0x%x eip=0x%lx cs_base=%lx\n", |
192 |
j, gen_opc_pc[j] - tb->cs_base, tb->cs_base); |
searched_pc, j, gen_opc_pc[j] - tb->cs_base, tb->cs_base); |
193 |
} |
} |
194 |
#endif |
#endif |
195 |
env->eip = gen_opc_pc[j] - tb->cs_base; |
env->eip = gen_opc_pc[j] - tb->cs_base; |