Commit d8bdf5fa1317c58a3079b1a899a7c2dc5e7753ef
1 parent
0aac653c
Sparc64 linux-user build fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2913 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
8 additions
and
0 deletions
target-sparc/op_helper.c
... | ... | @@ -1143,16 +1143,24 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, |
1143 | 1143 | #ifdef TARGET_SPARC64 |
1144 | 1144 | void do_tick_set_count(void *opaque, uint64_t count) |
1145 | 1145 | { |
1146 | +#if !defined(CONFIG_USER_ONLY) | |
1146 | 1147 | ptimer_set_count(opaque, -count); |
1148 | +#endif | |
1147 | 1149 | } |
1148 | 1150 | |
1149 | 1151 | uint64_t do_tick_get_count(void *opaque) |
1150 | 1152 | { |
1153 | +#if !defined(CONFIG_USER_ONLY) | |
1151 | 1154 | return -ptimer_get_count(opaque); |
1155 | +#else | |
1156 | + return 0; | |
1157 | +#endif | |
1152 | 1158 | } |
1153 | 1159 | |
1154 | 1160 | void do_tick_set_limit(void *opaque, uint64_t limit) |
1155 | 1161 | { |
1162 | +#if !defined(CONFIG_USER_ONLY) | |
1156 | 1163 | ptimer_set_limit(opaque, -limit, 0); |
1164 | +#endif | |
1157 | 1165 | } |
1158 | 1166 | #endif | ... | ... |