Lines Matching refs:cpu

47 typedef void (*CPUUnassignedAccess)(CPUState *cpu, hwaddr addr,
63 int running; /* Nonzero if cpu is currently running(usermode). */
98 #define CPU_NEXT(cpu) QTAILQ_NEXT(cpu, node)
99 #define CPU_FOREACH(cpu) QTAILQ_FOREACH(cpu, &cpus, node)
100 #define CPU_FOREACH_SAFE(cpu, next_cpu) \
101 QTAILQ_FOREACH_SAFE(cpu, &cpus, node, next_cpu)
124 * @cpu: The CPU whose state is to be dumped.
131 void cpu_dump_state(CPUState *cpu, FILE *f, fprintf_function cpu_fprintf,
136 * @cpu: The CPU whose state is to be dumped.
143 void cpu_dump_statistics(CPUState *cpu, FILE *f, fprintf_function cpu_fprintf,
148 * @cpu: The CPU whose state is to be reset.
150 void cpu_reset(CPUState *cpu);
154 * @cpu: The vCPU to check.
160 bool qemu_cpu_has_work(CPUState *cpu);
164 * @cpu: The vCPU to check against.
168 * Returns: %true if called from @cpu's thread, %false otherwise.
170 bool qemu_cpu_is_self(CPUState *cpu);
174 * @cpu: The vCPU to kick.
176 * Kicks @cpu's thread.
178 void qemu_cpu_kick(CPUState *cpu);
182 * @cpu: The CPU to check.
189 bool cpu_is_stopped(CPUState *cpu);
193 * @cpu: The vCPU to run on.
197 * Schedules the function @func for execution on the vCPU @cpu.
199 void run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data);
213 * @cpu: The CPU to set an interrupt on.
218 void cpu_interrupt(CPUState *cpu, int mask);
222 * @cpu: The CPU to clear the interrupt on.
225 * Resets interrupts on the vCPU @cpu.
227 void cpu_reset_interrupt(CPUState *cpu, int mask);
231 * @cpu: The CPU to exit.
233 * Requests the CPU @cpu to exit execution.
235 void cpu_exit(CPUState *cpu);
239 * @cpu: The CPU to resume.
243 void cpu_resume(CPUState *cpu);
247 * @cpu: The vCPU to initialize.
251 void qemu_init_vcpu(CPUState *cpu);
259 * @cpu: CPU to the flags for.
262 * Enables or disables single-stepping for @cpu.
264 void cpu_single_step(CPUState *cpu, int enabled);