summaryrefslogtreecommitdiff
path: root/hw/kvm/apic.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-03 14:58:47 +0200
committerAndreas Färber <afaerber@suse.de>2012-10-31 04:12:23 +0100
commitf100f0b38fe43c683f437a8fa3e449d6752f6a58 (patch)
treea39c6435ed12280f3ccd53301063ce2000f26ddd /hw/kvm/apic.c
parent8c5cf3b6219d5d5fb61a9d6e59022fc72dab8f85 (diff)
downloadqemu-f100f0b38fe43c683f437a8fa3e449d6752f6a58.tar.gz
qemu-f100f0b38fe43c683f437a8fa3e449d6752f6a58.tar.bz2
qemu-f100f0b38fe43c683f437a8fa3e449d6752f6a58.zip
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 'hw/kvm/apic.c')
-rw-r--r--hw/kvm/apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/kvm/apic.c b/hw/kvm/apic.c
index e4a7307ca5..8b65d513db 100644
--- a/hw/kvm/apic.c
+++ b/hw/kvm/apic.c
@@ -143,7 +143,7 @@ static void do_inject_external_nmi(void *data)
static void kvm_apic_external_nmi(APICCommonState *s)
{
- run_on_cpu(&s->cpu->env, do_inject_external_nmi, s);
+ run_on_cpu(CPU(s->cpu), do_inject_external_nmi, s);
}
static uint64_t kvm_apic_mem_read(void *opaque, hwaddr addr,