Skip to content

Commit

Permalink
target-i386: Pass FeatureWord argument to report_unavailable_features()
Browse files Browse the repository at this point in the history
This will help us simplify the code that calls
report_unavailable_features() later.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
ehabkost authored and afaerber committed Jun 25, 2014
1 parent 51f63ae commit 8459e39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions target-i386/cpu.c
Expand Up @@ -1234,8 +1234,9 @@ static const TypeInfo host_x86_cpu_type_info = {

#endif

static void report_unavailable_features(FeatureWordInfo *f, uint32_t mask)
static void report_unavailable_features(FeatureWord w, uint32_t mask)
{
FeatureWordInfo *f = &feature_word_info[w];
int i;

for (i = 0; i < 32; ++i) {
Expand Down Expand Up @@ -1840,7 +1841,7 @@ static int filter_features_for_kvm(X86CPU *cpu)
cpu->filtered_features[w] = requested_features & ~env->features[w];
if (cpu->filtered_features[w]) {
if (cpu->check_cpuid || cpu->enforce_cpuid) {
report_unavailable_features(wi, cpu->filtered_features[w]);
report_unavailable_features(w, cpu->filtered_features[w]);
}
rv = 1;
}
Expand Down

0 comments on commit 8459e39

Please sign in to comment.