|
From: | Anderson Sartor |
Subject: | Re: [Qemu-devel] Which method executes the translated blocks (TBs)? |
Date: | Wed, 9 Jul 2014 10:52:10 -0300 |
On 8 July 2014 18:26, Anderson Sartor <address@hidden> wrote:Yes.
> Hi all,
> Which method, in fact, executes the TBs (full-system emulation)? Is it
> tcg_qemu_tb_exec() from cpu_exec()?
Depends what you mean. There are circumstances where we
> At this point, is it possible for the execution of the TB to be interrupted
> (it will try to execute this TB again)?
won't actually execute the TB but will stop immediately, but
guest interrupts aren't one of them. (tcg/tcg.h has a good
documentation comment for tcg_qemu_tb_exec describing
this.) It's also possible that execution of the TB might be aborted
due to an exception that causes us to longjmp out and never
return from tcg_qemu_tb_exec().
Not sure exactly what you're trying to do here; bear in mind
> If positive, how do I know whether a
> TB was completely executed?
that tcg_qemu_tb_exec() may execute more than one TB
before it returns.
thanks
-- PMM
[Prev in Thread] | Current Thread | [Next in Thread] |