mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
cpu: Move can_do_io field from CPU_COMMON to CPUState
Rename can_do_io() to cpu_can_do_io() and change argument to CPUState. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
93afeade09
commit
99df7dce8a
8 changed files with 24 additions and 16 deletions
2
cpus.c
2
cpus.c
|
@ -140,7 +140,7 @@ static int64_t cpu_get_icount_locked(void)
|
|||
icount = qemu_icount;
|
||||
if (cpu) {
|
||||
CPUArchState *env = cpu->env_ptr;
|
||||
if (!can_do_io(env)) {
|
||||
if (!cpu_can_do_io(cpu)) {
|
||||
fprintf(stderr, "Bad clock read\n");
|
||||
}
|
||||
icount -= (env->icount_decr.u16.low + env->icount_extra);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue