aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-24 15:11:38 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-24 15:11:38 +0000
commit90cb94935228cc064f99fe98e70a8ea5deefb689 (patch)
tree5597bfabfeb95f6e6c4587369c070ed565f815c7 /vl.c
parentdb6e6ed77ec38506ffe842c8d419aebbb074f967 (diff)
s390 bits
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1530 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 13b07c8427..c3894b8017 100644
--- a/vl.c
+++ b/vl.c
@@ -532,6 +532,15 @@ int64_t cpu_get_real_ticks(void)
return val;
}
+#elif defined(__s390__)
+
+int64_t cpu_get_real_ticks(void)
+{
+ int64_t val;
+ asm volatile("stck 0(%1)" : "=m" (val) : "a" (&val) : "cc");
+ return val;
+}
+
#else
#error unsupported CPU
#endif