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 /target-i386 | |
parent | 8c5cf3b6219d5d5fb61a9d6e59022fc72dab8f85 (diff) | |
download | qemu-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 'target-i386')
-rw-r--r-- | target-i386/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index 45f4bed57f..bf206cfa97 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1177,7 +1177,7 @@ void cpu_x86_inject_mce(Monitor *mon, X86CPU *cpu, int bank, return; } - run_on_cpu(cenv, do_inject_x86_mce, ¶ms); + run_on_cpu(CPU(cpu), do_inject_x86_mce, ¶ms); if (flags & MCE_INJECT_BROADCAST) { params.bank = 1; params.status = MCI_STATUS_VAL | MCI_STATUS_UC; @@ -1189,7 +1189,7 @@ void cpu_x86_inject_mce(Monitor *mon, X86CPU *cpu, int bank, continue; } params.env = env; - run_on_cpu(cenv, do_inject_x86_mce, ¶ms); + run_on_cpu(CPU(cpu), do_inject_x86_mce, ¶ms); } } } |