aboutsummaryrefslogtreecommitdiff
path: root/cpu-all.h
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-06-09 12:15:18 -0400
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:36:47 -0500
commit950f147249643635289003d7dd291915ad330b29 (patch)
tree4fbee26dd9364a7bcfac706574e6c7e1afc8d4ef /cpu-all.h
parent7d9aa9c0994cc6a6c0cf9eeed2f380666d21ba08 (diff)
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>
Diffstat (limited to 'cpu-all.h')
-rw-r--r--cpu-all.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 8f078c415b..48a9a2c113 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -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, ...),