]> git.proxmox.com Git - mirror_qemu.git/commit
target-i386: Remove underscores from feat_names arrays
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 30 Sep 2016 18:49:40 +0000 (15:49 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Oct 2016 17:44:49 +0000 (15:44 -0200)
commitfc7dfd205f3287893c436d932a167bffa30579c8
tree5b54e900594cba1fb4ca0787ae5f2f2fc20be9a2
parent2fae0d96e6834f3bf98065a9cddedad120f9b2b4
target-i386: Remove underscores from feat_names arrays

Instead of translating the feature name entries when adding
property names, store the actual property names in the feature
name array.

For reference, here is the full list of functions that use
FeatureWordInfo::feat_names:

* x86_cpu_get_migratable_flags(): not affected, as it just
  check for non-NULL values.
* report_unavailable_features(): informative only. It will
  start printing feature names with hyphens.
* x86_cpu_list(): informative only. It will start printing
  feature names with hyphens
* x86_cpu_register_feature_bit_props(): not affected, as it
  was already calling feat2prop(). Now we can remove the
  feat2prop() calls safely.

So, the only user-visible effect of this patch are the new names
being used in help and error messages for users.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c