OSDN Git Service

timer: add cpu_icount_to_ns function.
authorKONRAD Frederic <fred.konrad@greensocs.com>
Thu, 31 Jul 2014 23:37:15 +0000 (01:37 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Aug 2014 15:53:07 +0000 (17:53 +0200)
commit3f03131390a8c91a0cac530f7ae79b04b42ab928
tree1e064390a7287a86717ae45538e0fb22002d051d
parentd09eae3726418d4c8df2e195fd1a3bf05074dd48
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>
cpus.c
include/qemu/timer.h