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:
Andreas Färber 2013-08-26 05:15:23 +02:00
parent 93afeade09
commit 99df7dce8a
8 changed files with 24 additions and 16 deletions

View file

@ -241,6 +241,7 @@ static void cpu_common_reset(CPUState *cpu)
cpu->halted = 0;
cpu->mem_io_pc = 0;
cpu->mem_io_vaddr = 0;
cpu->can_do_io = 0;
}
static bool cpu_common_has_work(CPUState *cs)