]> Git Repo - qemu.git/commit
i386: cpu: eliminate duplicate feature names
authorEduardo Habkost <[email protected]>
Thu, 6 Sep 2012 10:05:38 +0000 (10:05 +0000)
committerBlue Swirl <[email protected]>
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 <[email protected]>
Reviewed-by: Don Slutz <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
target-i386/cpu.c
This page took 0.02393 seconds and 4 git commands to generate.