On Sat, 17 Jun 2023 at 15:53, GanDalf LeBron <lebrongand...@gmail.com> wrote: > As said in the comment, instructions doing device I/Os must be at the end of > the TB in deterministic execution mode, icount mode or replay mode in other > words. > > But cpu_io_recompile is still got called when I disable icount opt. The > corresponding MemoryRegion is apic-msi with the access address fee000b0. Why > is the cpu_io_recompile called in non-icount mode?
cpu_io_recompile() is only ever called if the CPU can_do_io flag is false. This flag should only ever get set to 0 if we are in icount mode. So if you are not using icount and you end up in that function then there's a bug somewhere. thanks -- PMM