qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] User space vs kernel space instructions distribution.


From: Peter Maydell
Subject: Re: [Qemu-devel] User space vs kernel space instructions distribution.
Date: Thu, 23 Jul 2015 09:32:41 +0100

On 23 July 2015 at 08:57, Shlomo Pongratz <address@hidden> wrote:
> I have an array of the three address spaces user/unmapped/kernel and array
> of 4 els and I'm add the TB's icount to the appropriate entry according to
> the env->pc and arm_current_el(env) before the block execution.
> As I wrote before I disabled chaining so TB's icount is the number of
> executed instructions.

Note that this will overcount unless you also have code to handle the "took
an exception in the middle of the TB" case and reduce the instruction
count accordingly.

thanks
-- PMM



reply via email to

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