exec: Return CPUState from qemu_get_cpu()
Move the declaration to qemu/cpu.h and add documentation. The implementation still depends on CPUArchState for CPU iteration. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
1 parent
4a1e40b509
commit
38d8f5c84e
5 files changed
+22
-8
No files matched your search
@@ -156,5 +156,15 @@ bool cpu_is_stopped(CPUState *cpu);
|
||||
*/
|
||||
void run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data);
|
||||
|
||||
/**
|
||||
* qemu_get_cpu:
|
||||
* @index: The CPUState@cpu_index value of the CPU to obtain.
|
||||
*
|
||||
* Gets a CPU matching @index.
|
||||
*
|
||||
* Returns: The CPU or %NULL if there is no matching CPU.
|
||||
*/
|
||||
CPUState *qemu_get_cpu(int index);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user