[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The real function of calling cpu_io_recompile in non-icount mode
From: |
Peter Maydell |
Subject: |
Re: The real function of calling cpu_io_recompile in non-icount mode |
Date: |
Mon, 19 Jun 2023 10:39:26 +0100 |
On Sat, 17 Jun 2023 at 15:53, GanDalf LeBron <lebrongandalf@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