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