]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386/cpu: Introduce FeatureWord typedefs
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 7 Jan 2013 18:20:45 +0000 (16:20 -0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 15 Jan 2013 03:09:14 +0000 (04:09 +0100)
commit5ef5787627c07d053c2628fe720e814561fbfbe3
treed87d44c02fb4064c05af25918237245c980ecb06
parent6a4784ce6b95b013a13504ead9ab62975faf6eff
target-i386/cpu: Introduce FeatureWord typedefs

This introduces a FeatureWord enum, FeatureWordInfo struct (with
generation information about a feature word), and a FeatureWordArray
typedef, and changes add_flagname_to_bitmaps() code and
cpu_x86_parse_featurestr() to use the new typedefs instead of separate
variables for each feature word.

This will help us keep the code at kvm_check_features_against_host(),
cpu_x86_parse_featurestr() and add_flagname_to_bitmaps() sane while
adding new feature name arrays.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c
target-i386/cpu.h