Lines Matching refs:cpu
46 CPUState *cpu; in hw_error() local
52 CPU_FOREACH(cpu) { in hw_error()
53 fprintf(stderr, "CPU #%d:\n", cpu->cpu_index); in hw_error()
55 cpu_dump_state(cpu->env_ptr, stderr, fprintf, X86_DUMP_FPU); in hw_error()
57 cpu_dump_state(cpu->env_ptr, stderr, fprintf, 0); in hw_error()
76 CPUState *cpu = ENV_GET_CPU(env); in cpu_can_run() local
77 if (cpu->stop) in cpu_can_run()
79 if (cpu->stopped) in cpu_can_run()
86 CPUState *cpu; in tcg_has_work() local
88 CPU_FOREACH(cpu) { in tcg_has_work()
89 if (cpu->stop) in tcg_has_work()
91 if (cpu->stopped) in tcg_has_work()
93 if (!cpu->halted) in tcg_has_work()
95 if (cpu_has_work(cpu)) in tcg_has_work()
102 void qemu_init_vcpu(CPUState *cpu) in qemu_init_vcpu() argument
105 kvm_init_vcpu(cpu); in qemu_init_vcpu()
108 hax_init_vcpu(cpu); in qemu_init_vcpu()
113 bool qemu_cpu_is_self(CPUState *cpu) in qemu_cpu_is_self() argument
126 void qemu_cpu_kick(CPUState *cpu) in qemu_cpu_kick() argument
138 CPUState *cpu = current_cpu; in qemu_notify_event() local
140 if (cpu) { in qemu_notify_event()
141 cpu_exit(cpu); in qemu_notify_event()
153 hax_raise_event(cpu); in qemu_notify_event()