qemu-patch-raspberry4/linux-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
..
alpha
arm
cris
i386
m68k
microblaze
mips
mips64 mipsn32-linux-user: Configure the architecture properly 2013-03-05 15:04:20 +01:00
openrisc
ppc
s390x
sh4
sparc linux-user: Add more sparc syscall numbers 2013-03-11 13:05:14 +02:00
sparc64
unicore32
x86_64
cpu-uname.c
cpu-uname.h
elfload.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
errno_defs.h
flat.h
flatload.c
ioctls.h
linux_loop.h
linuxload.c
m68k-sim.c
main.c target-i386: Replace cpuid_*features fields with a feature word array 2013-05-02 00:27:55 +02:00
Makefile.objs
mmap.c
qemu.h linux-user: Restore cast to target type in get_user() 2013-02-06 16:37:39 -06:00
signal.c mips-linux-user: Save and restore fpu and dsp from sigcontext 2013-03-05 11:58:48 +01:00
socket.h linux-user: Add Alpha socket constants 2013-03-11 13:04:44 +02:00
strace.c linux-user: Don't omit comma for strace of rt_sigaction() 2013-04-05 14:40:54 +02:00
strace.list
syscall.c linux-user: fix compile error due to stray colon at end of #ifdef line 2013-04-26 11:52:29 +02:00
syscall_defs.h alpha-linux-user: Translate fcntl l_type 2013-01-16 08:13:17 -08:00
syscall_types.h
target_flat.h
uaccess.c
vm86.c