summaryrefslogtreecommitdiff
path: root/cpu-all.h
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-30 19:16:29 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-30 19:16:29 +0000
commit46152182100e68f7f8aa4954af1bf91160bb3d15 (patch)
treed00bd52a3ae7c8472725ac6fa3656b28a22015d1 /cpu-all.h
parentf3a9676a6038dbfc717f2225eb9d9416de4ea159 (diff)
downloadqemu-46152182100e68f7f8aa4954af1bf91160bb3d15.tar.gz
Rewrite Arm host support.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2071 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r--cpu-all.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 145d84beb1..996289eafa 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -992,6 +992,15 @@ static inline int64_t cpu_get_real_ticks (void)
return rval.i64;
#endif
}
+#else
+/* The host CPU doesn't have an easily accessible cycle counter.
+ Just return a monotonically increasing vlue. This will be totally wrong,
+ but hopefully better than nothing. */
+static inline int64_t cpu_get_real_ticks (void)
+{
+ static int64_t ticks = 0;
+ return ticks++;
+}
#endif
/* profiling */