diff mbox

[2/5] target-i386: Use X86CPU on cpu_x86_version()

Message ID 1429900209-31811-3-git-send-email-ehabkost@redhat.com
State New
Headers show

Commit Message

Eduardo Habkost April 24, 2015, 6:30 p.m. UTC
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 target-i386/helper.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/target-i386/helper.c b/target-i386/helper.c
index 166a803..215b354 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -25,9 +25,9 @@ 
 #include "monitor/monitor.h"
 #endif
 
-static void cpu_x86_version(CPUX86State *env, int *family, int *model)
+static void cpu_x86_version(X86CPU *cpu, int *family, int *model)
 {
-    int cpuver = env->cpuid_version;
+    int cpuver = cpu->env.cpuid_version;
 
     if (family == NULL || model == NULL) {
         return;
@@ -43,7 +43,7 @@  int cpu_x86_support_mca_broadcast(X86CPU *cpu)
     int family = 0;
     int model = 0;
 
-    cpu_x86_version(&cpu->env, &family, &model);
+    cpu_x86_version(cpu, &family, &model);
     if ((family == 6 && model >= 14) || family > 6) {
         return 1;
     }