diff options
author | Andreas Färber | 2012-05-03 14:58:47 +0200 |
---|---|---|
committer | Andreas Färber | 2012-10-31 04:12:23 +0100 |
commit | f100f0b38fe43c683f437a8fa3e449d6752f6a58 (patch) | |
tree | a39c6435ed12280f3ccd53301063ce2000f26ddd /target-i386/helper.c | |
parent | target-i386: Pass X86CPU to cpu_x86_inject_mce() (diff) | |
download | qemu-f100f0b38fe43c683f437a8fa3e449d6752f6a58.tar.gz qemu-f100f0b38fe43c683f437a8fa3e449d6752f6a58.tar.xz 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/helper.c')
-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); } } } |