]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-i386: Use FeatureWord loop on filter_features_for_kvm()
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 22 Apr 2013 19:00:18 +0000 (16:00 -0300)
committerAndreas Färber <afaerber@suse.de>
Mon, 6 May 2013 15:53:57 +0000 (17:53 +0200)
commitbd87d2a2c05569a28768648b069cbc24c40f4fb8
treeb76660354f93e2c18aec249af54ecf0303e823a6
parent04d104b61198615c259d1851684b2713213dcf99
target-i386: Use FeatureWord loop on filter_features_for_kvm()

Instead of open-coding the filtering code for each feature word, change
the existing code to use the feature_word_info array, that has exactly
the same CPUID eax/ecx/register values for each feature word.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c