aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r--target-sparc/op_helper.c8
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