mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Convert tick operations to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4011 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
00f219bf50
commit
ccd4a21937
5 changed files with 90 additions and 58 deletions
|
@ -612,14 +612,14 @@ void memcpy32(target_ulong *dst, const target_ulong *src)
|
|||
#include "qemu-timer.h"
|
||||
#endif
|
||||
|
||||
void do_tick_set_count(void *opaque, uint64_t count)
|
||||
void helper_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)
|
||||
uint64_t helper_tick_get_count(void *opaque)
|
||||
{
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
return -ptimer_get_count(opaque);
|
||||
|
@ -628,7 +628,7 @@ uint64_t do_tick_get_count(void *opaque)
|
|||
#endif
|
||||
}
|
||||
|
||||
void do_tick_set_limit(void *opaque, uint64_t limit)
|
||||
void helper_tick_set_limit(void *opaque, uint64_t limit)
|
||||
{
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
ptimer_set_limit(opaque, -limit, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue