|
From: | Sebastian Ottlik |
Subject: | Re: [Qemu-discuss] icount |
Date: | Fri, 10 Jan 2014 10:17:33 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Hi,the -icount feature does actually count the number of executed instructions (with a TB granularity). It is not output directly but used to simulate the system clock after being scaled by N. In theory this should allow a deterministic simulation even when interacting with hardware (e.g., using a simulated HW timer). However, as I understand, it my be warped by the host execution time in some situations, which could be non-deterministic.
As far as I know the functionality you are looking for is not directly available in QEMU, but can be added with a few changes to arm/translate.c and related files. The num_insns is a counter for the number of instructions in the TB that is currently being generated.
Regards, Sebastian
[Prev in Thread] | Current Thread | [Next in Thread] |