mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
aio / timers: Rearrange timer.h & make legacy functions call non-legacy
Rearrange timer.h so it is in order by function type. Make legacy functions call non-legacy functions rather than vice-versa. Convert cpus.c to use new API. Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
55a197dab4
commit
40daca54cd
11 changed files with 490 additions and 390 deletions
|
@ -1020,7 +1020,7 @@ static void tsc210x_save(QEMUFile *f, void *opaque)
|
|||
qemu_put_byte(f, s->irq);
|
||||
qemu_put_be16s(f, &s->dav);
|
||||
|
||||
qemu_put_timer(f, s->timer);
|
||||
timer_put(f, s->timer);
|
||||
qemu_put_byte(f, s->enabled);
|
||||
qemu_put_byte(f, s->host_mode);
|
||||
qemu_put_byte(f, s->function);
|
||||
|
@ -1066,7 +1066,7 @@ static int tsc210x_load(QEMUFile *f, void *opaque, int version_id)
|
|||
s->irq = qemu_get_byte(f);
|
||||
qemu_get_be16s(f, &s->dav);
|
||||
|
||||
qemu_get_timer(f, s->timer);
|
||||
timer_get(f, s->timer);
|
||||
s->enabled = qemu_get_byte(f);
|
||||
s->host_mode = qemu_get_byte(f);
|
||||
s->function = qemu_get_byte(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue