Revision 29e922b6 exec-all.h

b/exec-all.h
337 337
        + env1->tlb_table[mmu_idx][page_index].addend;
338 338
    return qemu_ram_addr_from_host(p);
339 339
}
340

  
341
/* Deterministic execution requires that IO only be performed on the last
342
   instruction of a TB so that interrupts take effect immediately.  */
343
static inline int can_do_io(CPUState *env)
344
{
345
    if (!use_icount)
346
        return 1;
347

  
348
    /* If not executing code then assume we are ok.  */
349
    if (!env->current_tb)
350
        return 1;
351

  
352
    return env->can_do_io != 0;
353
}
354 340
#endif
355 341

  
356 342
typedef void (CPUDebugExcpHandler)(CPUState *env);

Also available in: Unified diff