]> git.proxmox.com Git - qemu.git/commit
i386: cpu: eliminate duplicate feature names
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 6 Sep 2012 10:05:38 +0000 (10:05 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 30 Sep 2012 11:11:25 +0000 (11:11 +0000)
commit3b671a40cab2404bc63e57db8cd3afa4ec70bfab
treec3510942ac99fefed62e5a75adb14fffcbc2f7eb
parent60032ac04c675cf8950497f9d06e681b2dc7085c
i386: cpu: eliminate duplicate feature names

Instead of having duplicate feature names on the ext2_feature array for
the AMD feature bit aliases, we keep the feature names only on the
feature_name[] array, and copy the corresponding bits to
cpuid_ext2_features in case the CPU vendor is AMD.

This will:

- Make sure we don't set the feature bit aliases on Intel CPUs;
- Make it easier to convert feature bits to CPU properties, as now we
  have a single bit on the x86_def_t struct for each CPU feature.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Don Slutz <Don@CloudSwitch.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-i386/cpu.c