summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-07 22:20:31 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-07 22:20:31 +0000
commitb8076a748d52db5f5258c29fe342b8593a0b9914 (patch)
treec17325b7b231aad483da0f327e45d3914d14e318 /vl.c
parent7a674b136337ac195b2a983f4a6b81f1c50c715e (diff)
downloadqemu-b8076a748d52db5f5258c29fe342b8593a0b9914.tar.gz
qemu-b8076a748d52db5f5258c29fe342b8593a0b9914.tar.bz2
qemu-b8076a748d52db5f5258c29fe342b8593a0b9914.zip
ia64 host support (David Mosberger)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1360 c046a42c-6fe2-441c-8c8c-71466251a162
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 46a36adf59..40c0c0afdb 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