qemu-devel
[Top][All Lists]
Advanced

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

Questions about calculation of executed icount


From: Junho
Subject: Questions about calculation of executed icount
Date: Wed, 17 Apr 2024 15:19:28 +0900

Hello,

I'm a QEMU user and would like to ask you a question.
I see that, in QEMU code, the current number of executed instructions is calculated by:
cpu->icount_budget - (cpu->icount_decr.u16.low + cpu->icount_extra);

Can I know how this calculation can be the number of executed instructions? 
What makes cpu->icount_decr.u16.low change and when it does?
It seems that the decrementer is eventually updated to insns_left every TB exec, but I would like to know how the entire calculation works to do so.

I'm looking forward to hearing from you.
Thank you

Best regards,
Junho


reply via email to

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