qemu/target-i386
Eduardo Habkost 0514ef2fbb target-i386: Replace cpuid_*features fields with a feature word array
This replaces the feature-bit fields on both X86CPU and x86_def_t
structs with an array.

With this, we will be able to simplify code that simply does the same
operation on all feature words (e.g. kvm_check_features_against_host(),
filter_features_for_kvm(), add_flagname_to_bitmaps(), CPU feature-bit
property lookup/registration, and the proposed "feature-words" property)

The following field replacements were made on X86CPU and x86_def_t:

  (cpuid_)features         -> features[FEAT_1_EDX]
  (cpuid_)ext_features     -> features[FEAT_1_ECX]
  (cpuid_)ext2_features    -> features[FEAT_8000_0001_EDX]
  (cpuid_)ext3_features    -> features[FEAT_8000_0001_ECX]
  (cpuid_)ext4_features    -> features[FEAT_C000_0001_EDX]
  (cpuid_)kvm_features     -> features[FEAT_KVM]
  (cpuid_)svm_features     -> features[FEAT_SVM]
  (cpuid_)7_0_ebx_features -> features[FEAT_7_0_EBX]

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-05-02 00:27:55 +02:00
..
arch_dump.c cpu: Move cpu_write_elfXX_note() functions to CPUState 2013-05-01 13:04:19 +02:00
arch_memory_mapping.c
cc_helper_template.h
cc_helper.c
cpu-qom.h cpu: Move cpu_write_elfXX_note() functions to CPUState 2013-05-01 13:04:19 +02:00
cpu.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
cpu.h target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
excp_helper.c
fpu_helper.c target-i386: add AES-NI instructions 2013-04-13 13:51:57 +02:00
helper.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
helper.h target-i386: Use mulu2 and muls2 2013-02-27 19:06:28 +00:00
hyperv.c
hyperv.h
int_helper.c target-i386: Use mulu2 and muls2 2013-02-27 19:06:28 +00:00
ioport-user.c
kvm_i386.h
kvm-stub.c
kvm.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
machine.c target-i386: kvm: save/restore steal time MSR 2013-04-17 23:27:24 -03:00
Makefile.objs
mem_helper.c
misc_helper.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
ops_sse_header.h target-i386: add AES-NI instructions 2013-04-13 13:51:57 +02:00
ops_sse.h target-i386: add AES-NI instructions 2013-04-13 13:51:57 +02:00
seg_helper.c cpu: Replace do_interrupt() by CPUClass::do_interrupt method 2013-03-12 10:35:55 +01:00
shift_helper_template.h
smm_helper.c
svm_helper.c cpu: Move halted and interrupt_request fields to CPUState 2013-03-12 10:35:55 +01:00
svm.h
TODO
topology.h
translate.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00