aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 46a36adf5..40c0c0afd 100644
--- a/vl.c
+++ b/vl.c
@@ -519,6 +519,15 @@ int64_t cpu_get_real_ticks(void)
return val;
}
+#elif defined(__ia64)
+
+int64_t cpu_get_real_ticks(void)
+{
+ int64_t val;
+ asm volatile ("mov %0 = ar.itc" : "=r"(val) :: "memory");
+ return val;
+}
+
#else
#error unsupported CPU
#endif