qemu-e2k/bsd-user
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
..
freebsd bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
i386 bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
netbsd
openbsd Fix BSD user compilation on other than OpenBSD 2008-11-22 20:34:45 +00:00
sparc
sparc64
x86_64 Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
Makefile.objs build: move *-user/ objects to nested Makefile.objs 2012-06-07 07:17:33 +02:00
bsd-mman.h Prepare for handling different BSD mmap() flags 2008-11-29 14:05:16 +00:00
bsdload.c bsd_user: Fix potential null pointer dereference 2011-12-10 17:02:05 +00:00
elfload.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
errno_defs.h
main.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
mmap.c bsd-user: avoid conflict with qemu_vmalloc 2013-01-26 13:18:27 +00:00
qemu.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
signal.c Rename CPUState -> CPUArchState 2012-03-14 22:20:27 +01:00
strace.c bsd-users: fix strace 2009-07-17 17:48:03 +00:00
syscall.c bsd-user: Track change in FreeBSD SYSCTL(9) types 2013-04-26 13:23:52 +02:00
syscall_defs.h bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
uaccess.c fix build warnings 2009-07-17 17:48:01 +00:00