Fix warnings caused by timer_t, it is 32 bits on Sparc64
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5725 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
634a21f604
commit
0399bfe0bf
6
vl.c
6
vl.c
@ -1527,21 +1527,21 @@ static int dynticks_start_timer(struct qemu_alarm_timer *t)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
t->priv = (void *)host_timer;
|
t->priv = (void *)(long)host_timer;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dynticks_stop_timer(struct qemu_alarm_timer *t)
|
static void dynticks_stop_timer(struct qemu_alarm_timer *t)
|
||||||
{
|
{
|
||||||
timer_t host_timer = (timer_t)t->priv;
|
timer_t host_timer = (timer_t)(long)t->priv;
|
||||||
|
|
||||||
timer_delete(host_timer);
|
timer_delete(host_timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dynticks_rearm_timer(struct qemu_alarm_timer *t)
|
static void dynticks_rearm_timer(struct qemu_alarm_timer *t)
|
||||||
{
|
{
|
||||||
timer_t host_timer = (timer_t)t->priv;
|
timer_t host_timer = (timer_t)(long)t->priv;
|
||||||
struct itimerspec timeout;
|
struct itimerspec timeout;
|
||||||
int64_t nearest_delta_us = INT64_MAX;
|
int64_t nearest_delta_us = INT64_MAX;
|
||||||
int64_t current_us;
|
int64_t current_us;
|
||||||
|
Loading…
Reference in New Issue
Block a user