diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-01 16:45:59 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-01 16:45:59 +0000 |
commit | d8bdf5fa1317c58a3079b1a899a7c2dc5e7753ef (patch) | |
tree | 2546bcf79fefe2402faddf528ba976d1701cc4c3 /target-sparc | |
parent | 0aac653cdda6a2be1998119d5346a43ce1ac6270 (diff) |
Sparc64 linux-user build fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2913 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/op_helper.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index dc1c04deb5..11134cf124 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -1143,16 +1143,24 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, #ifdef TARGET_SPARC64 void do_tick_set_count(void *opaque, uint64_t count) { +#if !defined(CONFIG_USER_ONLY) ptimer_set_count(opaque, -count); +#endif } uint64_t do_tick_get_count(void *opaque) { +#if !defined(CONFIG_USER_ONLY) return -ptimer_get_count(opaque); +#else + return 0; +#endif } void do_tick_set_limit(void *opaque, uint64_t limit) { +#if !defined(CONFIG_USER_ONLY) ptimer_set_limit(opaque, -limit, 0); +#endif } #endif |