diff options
author | Jin Dongming <jin.dongming@np.css.fujitsu.com> | 2010-12-10 17:21:14 +0900 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-01-21 14:05:22 -0200 |
commit | 2bd3e04c3b3c76d573435a299a4d85bad0021a90 (patch) | |
tree | 20abbcbb6ccfec64688d1e859d4cfa679d9bf570 /target-i386/kvm.c | |
parent | 31ce5e0c49821d92fb30cce2f3055ef33613b287 (diff) | |
download | qemu-2bd3e04c3b3c76d573435a299a4d85bad0021a90.zip qemu-2bd3e04c3b3c76d573435a299a4d85bad0021a90.tar.gz qemu-2bd3e04c3b3c76d573435a299a4d85bad0021a90.tar.bz2 |
Add function for checking mca broadcast of CPU
Add function for checking whether current CPU support mca broadcast.
Signed-off-by: Jin Dongming <jin.dongming@np.css.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-i386/kvm.c')
-rw-r--r-- | target-i386/kvm.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 8b868ad..2115a58 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -1711,13 +1711,9 @@ static void hardware_memory_error(void) static void kvm_mce_broadcast_rest(CPUState *env) { CPUState *cenv; - int family, model, cpuver = env->cpuid_version; - - family = (cpuver >> 8) & 0xf; - model = ((cpuver >> 12) & 0xf0) + ((cpuver >> 4) & 0xf); /* Broadcast MCA signal for processor version 06H_EH and above */ - if ((family == 6 && model >= 14) || family > 6) { + if (cpu_x86_support_mca_broadcast(env)) { for (cenv = first_cpu; cenv != NULL; cenv = cenv->next_cpu) { if (cenv == env) { continue; |