From 3f03131390a8c91a0cac530f7ae79b04b42ab928 Mon Sep 17 00:00:00 2001 From: KONRAD Frederic Date: Fri, 1 Aug 2014 01:37:15 +0200 Subject: 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 Reviewed-by: Paolo Bonzini Signed-off-by: Paolo Bonzini --- include/qemu/timer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/qemu') diff --git a/include/qemu/timer.h b/include/qemu/timer.h index 7f9a074..e12c714 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) */ -- cgit v1.1