qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH 2/5] target-i386: Use X86CPU on cpu_x86_version()
Date: Fri, 24 Apr 2015 15:30:06 -0300

Signed-off-by: Eduardo Habkost <address@hidden>
---
 target-i386/helper.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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;
     }
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]