qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Which method executes the translated blocks (TBs)?


From: Peter Maydell
Subject: Re: [Qemu-devel] Which method executes the translated blocks (TBs)?
Date: Fri, 11 Jul 2014 10:04:25 +0100

On 11 July 2014 03:31, Anderson Sartor <address@hidden> wrote:
> So, the only test I need to make to be sure that a given TB was completely
> executed is to check the two lowest bits of next_tb (after
> tcg_qemu_tb_exec() call), and, if they are not equal to 2 or 3, then the TB
> finished its execution (if it has 0 or 1 on the 2 lowest bits)? And in the
> next iteration, the next TB will be executed, considering that chaining is
> disabled (1 TB per cpu_exec iteration).
> Am I missing something?

Yes, if you've disabled chaining I think that will work. You'll
never count the code in a TB that runs up to an unexpected
exception like a load/store fault, but I think you'll count every
other TB that way.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]