diff options
| author | KONRAD Frederic <fred.konrad@greensocs.com> | 2014-08-01 01:37:15 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-06 17:53:07 +0200 |
| commit | 3f03131390a8c91a0cac530f7ae79b04b42ab928 (patch) | |
| tree | 1e064390a7287a86717ae45538e0fb22002d051d /include/qemu/timer.h | |
| parent | d09eae3726418d4c8df2e195fd1a3bf05074dd48 (diff) | |
| download | focaccia-qemu-3f03131390a8c91a0cac530f7ae79b04b42ab928.tar.gz focaccia-qemu-3f03131390a8c91a0cac530f7ae79b04b42ab928.zip | |
timer: add cpu_icount_to_ns function.
This adds cpu_icount_to_ns function which is needed for reverse execution. It returns the time for a specific instruction. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/timer.h')
| -rw-r--r-- | include/qemu/timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/timer.h b/include/qemu/timer.h index 7f9a074c2a..e12c7149e1 100644 --- a/include/qemu/timer.h +++ b/include/qemu/timer.h @@ -745,6 +745,7 @@ static inline int64_t get_clock(void) /* icount */ int64_t cpu_get_icount(void); int64_t cpu_get_clock(void); +int64_t cpu_icount_to_ns(int64_t icount); /*******************************************/ /* host CPU ticks (if available) */ |