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
|
@ -363,7 +363,7 @@ void cpu_put_timer(QEMUFile *f, CPUTimer *s)
|
|||
qemu_put_be64s(f, &s->disabled_mask);
|
||||
qemu_put_sbe64s(f, &s->clock_offset);
|
||||
|
||||
qemu_put_timer(f, s->qtimer);
|
||||
timer_put(f, s->qtimer);
|
||||
}
|
||||
|
||||
void cpu_get_timer(QEMUFile *f, CPUTimer *s)
|
||||
|
@ -373,7 +373,7 @@ void cpu_get_timer(QEMUFile *f, CPUTimer *s)
|
|||
qemu_get_be64s(f, &s->disabled_mask);
|
||||
qemu_get_sbe64s(f, &s->clock_offset);
|
||||
|
||||
qemu_get_timer(f, s->qtimer);
|
||||
timer_get(f, s->qtimer);
|
||||
}
|
||||
|
||||
static CPUTimer *cpu_timer_create(const char *name, SPARCCPU *cpu,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue