mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
provide cpu_index to env mapping
There are some people interested in, given a cpu number, pick its CPUState. KVM is an example, although not yet in tree. This patch provides a way of doing that. Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7d9aa9c099
commit
950f147249
2 changed files with 14 additions and 0 deletions
|
@ -743,6 +743,7 @@ int page_check_range(target_ulong start, target_ulong len, int flags);
|
|||
|
||||
void cpu_exec_init_all(unsigned long tb_size);
|
||||
CPUState *cpu_copy(CPUState *env);
|
||||
CPUState *qemu_get_cpu(int cpu);
|
||||
|
||||
void cpu_dump_state(CPUState *env, FILE *f,
|
||||
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue