diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-03 14:58:47 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-10-31 04:12:23 +0100 |
commit | f100f0b38fe43c683f437a8fa3e449d6752f6a58 (patch) | |
tree | a39c6435ed12280f3ccd53301063ce2000f26ddd /cpus.c | |
parent | 8c5cf3b6219d5d5fb61a9d6e59022fc72dab8f85 (diff) |
cpus: Pass CPUState to run_on_cpu()
CPUArchState is no longer needed.
Move the declaration to include/qemu/cpu.h and add documentation.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -640,9 +640,8 @@ void qemu_init_cpu_loop(void) qemu_thread_get_self(&io_thread); } -void run_on_cpu(CPUArchState *env, void (*func)(void *data), void *data) +void run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data) { - CPUState *cpu = ENV_GET_CPU(env); struct qemu_work_item wi; if (qemu_cpu_is_self(cpu)) { |