aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cpu.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2014-04-30 13:48:31 -0300
committerAndreas Färber <afaerber@suse.de>2014-06-25 18:04:15 +0200
commit8459e3961eb5519cb16d5950020ef7010f4b8a6f (patch)
treee2251faaa1395afaa7d12c55af8a1a2d30ccdc62 /target-i386/cpu.c
parent51f63aed32314479065207ff2fb28255de4dbda4 (diff)
target-i386: Pass FeatureWord argument to report_unavailable_features()
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>
Diffstat (limited to 'target-i386/cpu.c')
-rw-r--r--target-i386/cpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index f8c4993fe1..f2c3583d6a 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -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) {
@@ -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;
}