diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-07-24 15:11:38 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-07-24 15:11:38 +0000 |
commit | 90cb94935228cc064f99fe98e70a8ea5deefb689 (patch) | |
tree | 5597bfabfeb95f6e6c4587369c070ed565f815c7 /vl.c | |
parent | db6e6ed77ec38506ffe842c8d419aebbb074f967 (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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |