|
|
7a3408 |
From 1875eb905dd54477adea1ad55cd5e8b9f91cab15 Mon Sep 17 00:00:00 2001
|
|
|
7a3408 |
Message-Id: <1875eb905dd54477adea1ad55cd5e8b9f91cab15@dist-git>
|
|
|
7a3408 |
From: Andrea Bolognani <abologna@redhat.com>
|
|
|
7a3408 |
Date: Tue, 11 Aug 2015 17:15:50 +0200
|
|
|
7a3408 |
Subject: [PATCH] cpu: Rename {powerpc, ppc} => ppc64 (exported symbols)
|
|
|
7a3408 |
|
|
|
7a3408 |
Only the symbols exported by the driver have been updated;
|
|
|
7a3408 |
the driver implementation itself still uses the old names
|
|
|
7a3408 |
internally.
|
|
|
7a3408 |
|
|
|
7a3408 |
No functional changes.
|
|
|
7a3408 |
|
|
|
7a3408 |
(cherry picked from commit e89733c4a443b6ea3a32c8e2f0dcd554c1ffd645)
|
|
|
7a3408 |
|
|
|
7a3408 |
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1250977
|
|
|
7a3408 |
|
|
|
7a3408 |
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
7a3408 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
7a3408 |
---
|
|
|
7a3408 |
src/cpu/cpu.c | 2 +-
|
|
|
7a3408 |
src/cpu/cpu.h | 2 +-
|
|
|
7a3408 |
src/cpu/cpu_ppc64.c | 18 +++++++++---------
|
|
|
7a3408 |
src/cpu/cpu_ppc64.h | 10 +++++-----
|
|
|
7a3408 |
src/cpu/cpu_ppc64_data.h | 10 +++++-----
|
|
|
7a3408 |
5 files changed, 21 insertions(+), 21 deletions(-)
|
|
|
7a3408 |
|
|
|
7a3408 |
diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c
|
|
|
7a3408 |
index 2e34f81..731df26 100644
|
|
|
7a3408 |
--- a/src/cpu/cpu.c
|
|
|
7a3408 |
+++ b/src/cpu/cpu.c
|
|
|
7a3408 |
@@ -44,7 +44,7 @@ VIR_LOG_INIT("cpu.cpu");
|
|
|
7a3408 |
|
|
|
7a3408 |
static struct cpuArchDriver *drivers[] = {
|
|
|
7a3408 |
&cpuDriverX86,
|
|
|
7a3408 |
- &cpuDriverPowerPC,
|
|
|
7a3408 |
+ &cpuDriverPPC64,
|
|
|
7a3408 |
&cpuDriverS390,
|
|
|
7a3408 |
&cpuDriverArm,
|
|
|
7a3408 |
&cpuDriverAARCH64,
|
|
|
7a3408 |
diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h
|
|
|
7a3408 |
index c0371cd..49d4226 100644
|
|
|
7a3408 |
--- a/src/cpu/cpu.h
|
|
|
7a3408 |
+++ b/src/cpu/cpu.h
|
|
|
7a3408 |
@@ -38,7 +38,7 @@ struct _virCPUData {
|
|
|
7a3408 |
virArch arch;
|
|
|
7a3408 |
union {
|
|
|
7a3408 |
virCPUx86Data *x86;
|
|
|
7a3408 |
- struct cpuPPCData ppc;
|
|
|
7a3408 |
+ struct cpuPPC64Data ppc64;
|
|
|
7a3408 |
/* generic driver needs no data */
|
|
|
7a3408 |
} data;
|
|
|
7a3408 |
};
|
|
|
7a3408 |
diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c
|
|
|
7a3408 |
index 7866bdd..bec4bf8 100644
|
|
|
7a3408 |
--- a/src/cpu/cpu_ppc64.c
|
|
|
7a3408 |
+++ b/src/cpu/cpu_ppc64.c
|
|
|
7a3408 |
@@ -1,5 +1,5 @@
|
|
|
7a3408 |
/*
|
|
|
7a3408 |
- * cpu_ppc64.c: CPU driver for PowerPC CPUs
|
|
|
7a3408 |
+ * cpu_ppc64.c: CPU driver for 64-bit PowerPC CPUs
|
|
|
7a3408 |
*
|
|
|
7a3408 |
* Copyright (C) 2013 Red Hat, Inc.
|
|
|
7a3408 |
* Copyright (C) IBM Corporation, 2010
|
|
|
7a3408 |
@@ -36,7 +36,7 @@
|
|
|
7a3408 |
|
|
|
7a3408 |
#define VIR_FROM_THIS VIR_FROM_CPU
|
|
|
7a3408 |
|
|
|
7a3408 |
-VIR_LOG_INIT("cpu.cpu_powerpc");
|
|
|
7a3408 |
+VIR_LOG_INIT("cpu.cpu_ppc64");
|
|
|
7a3408 |
|
|
|
7a3408 |
static const virArch archs[] = { VIR_ARCH_PPC64, VIR_ARCH_PPC64LE };
|
|
|
7a3408 |
|
|
|
7a3408 |
@@ -48,7 +48,7 @@ struct ppc_vendor {
|
|
|
7a3408 |
struct ppc_model {
|
|
|
7a3408 |
char *name;
|
|
|
7a3408 |
const struct ppc_vendor *vendor;
|
|
|
7a3408 |
- struct cpuPPCData data;
|
|
|
7a3408 |
+ struct cpuPPC64Data data;
|
|
|
7a3408 |
struct ppc_model *next;
|
|
|
7a3408 |
};
|
|
|
7a3408 |
|
|
|
7a3408 |
@@ -340,7 +340,7 @@ ppcLoadMap(void)
|
|
|
7a3408 |
}
|
|
|
7a3408 |
|
|
|
7a3408 |
static virCPUDataPtr
|
|
|
7a3408 |
-ppcMakeCPUData(virArch arch, struct cpuPPCData *data)
|
|
|
7a3408 |
+ppcMakeCPUData(virArch arch, struct cpuPPC64Data *data)
|
|
|
7a3408 |
{
|
|
|
7a3408 |
virCPUDataPtr cpuData;
|
|
|
7a3408 |
|
|
|
7a3408 |
@@ -348,7 +348,7 @@ ppcMakeCPUData(virArch arch, struct cpuPPCData *data)
|
|
|
7a3408 |
return NULL;
|
|
|
7a3408 |
|
|
|
7a3408 |
cpuData->arch = arch;
|
|
|
7a3408 |
- cpuData->data.ppc = *data;
|
|
|
7a3408 |
+ cpuData->data.ppc64 = *data;
|
|
|
7a3408 |
data = NULL;
|
|
|
7a3408 |
|
|
|
7a3408 |
return cpuData;
|
|
|
7a3408 |
@@ -480,10 +480,10 @@ ppcDecode(virCPUDefPtr cpu,
|
|
|
7a3408 |
if (data == NULL || (map = ppcLoadMap()) == NULL)
|
|
|
7a3408 |
return -1;
|
|
|
7a3408 |
|
|
|
7a3408 |
- if (!(model = ppcModelFindPVR(map, data->data.ppc.pvr))) {
|
|
|
7a3408 |
+ if (!(model = ppcModelFindPVR(map, data->data.ppc64.pvr))) {
|
|
|
7a3408 |
virReportError(VIR_ERR_OPERATION_FAILED,
|
|
|
7a3408 |
_("Cannot find CPU model with PVR 0x%08x"),
|
|
|
7a3408 |
- data->data.ppc.pvr);
|
|
|
7a3408 |
+ data->data.ppc64.pvr);
|
|
|
7a3408 |
goto cleanup;
|
|
|
7a3408 |
}
|
|
|
7a3408 |
|
|
|
7a3408 |
@@ -529,7 +529,7 @@ ppcNodeData(virArch arch)
|
|
|
7a3408 |
|
|
|
7a3408 |
#if defined(__powerpc__) || defined(__powerpc64__)
|
|
|
7a3408 |
asm("mfpvr %0"
|
|
|
7a3408 |
- : "=r" (cpuData->data.ppc.pvr));
|
|
|
7a3408 |
+ : "=r" (cpuData->data.ppc64.pvr));
|
|
|
7a3408 |
#endif
|
|
|
7a3408 |
|
|
|
7a3408 |
return cpuData;
|
|
|
7a3408 |
@@ -694,7 +694,7 @@ ppcGetModels(char ***models)
|
|
|
7a3408 |
goto cleanup;
|
|
|
7a3408 |
}
|
|
|
7a3408 |
|
|
|
7a3408 |
-struct cpuArchDriver cpuDriverPowerPC = {
|
|
|
7a3408 |
+struct cpuArchDriver cpuDriverPPC64 = {
|
|
|
7a3408 |
.name = "ppc64",
|
|
|
7a3408 |
.arch = archs,
|
|
|
7a3408 |
.narch = ARRAY_CARDINALITY(archs),
|
|
|
7a3408 |
diff --git a/src/cpu/cpu_ppc64.h b/src/cpu/cpu_ppc64.h
|
|
|
7a3408 |
index e9ef2be..a6c9659 100644
|
|
|
7a3408 |
--- a/src/cpu/cpu_ppc64.h
|
|
|
7a3408 |
+++ b/src/cpu/cpu_ppc64.h
|
|
|
7a3408 |
@@ -1,5 +1,5 @@
|
|
|
7a3408 |
/*
|
|
|
7a3408 |
- * cpu_ppc64.h: CPU driver for PowerPC CPUs
|
|
|
7a3408 |
+ * cpu_ppc64.h: CPU driver for 64-bit PowerPC CPUs
|
|
|
7a3408 |
*
|
|
|
7a3408 |
* Copyright (C) Copyright (C) IBM Corporation, 2010
|
|
|
7a3408 |
*
|
|
|
7a3408 |
@@ -22,11 +22,11 @@
|
|
|
7a3408 |
* Prerna Saxena <prerna@linux.vnet.ibm.com>
|
|
|
7a3408 |
*/
|
|
|
7a3408 |
|
|
|
7a3408 |
-#ifndef __VIR_CPU_POWERPC_H__
|
|
|
7a3408 |
-# define __VIR_CPU_POWERPC_H__
|
|
|
7a3408 |
+#ifndef __VIR_CPU_PPC64_H__
|
|
|
7a3408 |
+# define __VIR_CPU_PPC64_H__
|
|
|
7a3408 |
|
|
|
7a3408 |
# include "cpu.h"
|
|
|
7a3408 |
|
|
|
7a3408 |
-extern struct cpuArchDriver cpuDriverPowerPC;
|
|
|
7a3408 |
+extern struct cpuArchDriver cpuDriverPPC64;
|
|
|
7a3408 |
|
|
|
7a3408 |
-#endif /* __VIR_CPU_POWERPC_H__ */
|
|
|
7a3408 |
+#endif /* __VIR_CPU_PPC64_H__ */
|
|
|
7a3408 |
diff --git a/src/cpu/cpu_ppc64_data.h b/src/cpu/cpu_ppc64_data.h
|
|
|
7a3408 |
index a70b099..45152de 100644
|
|
|
7a3408 |
--- a/src/cpu/cpu_ppc64_data.h
|
|
|
7a3408 |
+++ b/src/cpu/cpu_ppc64_data.h
|
|
|
7a3408 |
@@ -1,5 +1,5 @@
|
|
|
7a3408 |
/*
|
|
|
7a3408 |
- * cpu_ppc64_data.h: PowerPC specific CPU data
|
|
|
7a3408 |
+ * cpu_ppc64_data.h: 64-bit PowerPC CPU specific data
|
|
|
7a3408 |
*
|
|
|
7a3408 |
* Copyright (C) 2012 IBM Corporation.
|
|
|
7a3408 |
*
|
|
|
7a3408 |
@@ -21,13 +21,13 @@
|
|
|
7a3408 |
* Li Zhang <zhlcindy@linux.vnet.ibm.com>
|
|
|
7a3408 |
*/
|
|
|
7a3408 |
|
|
|
7a3408 |
-#ifndef __VIR_CPU_PPC_DATA_H__
|
|
|
7a3408 |
-# define __VIR_CPU_PPC_DATA_H__
|
|
|
7a3408 |
+#ifndef __VIR_CPU_PPC64_DATA_H__
|
|
|
7a3408 |
+# define __VIR_CPU_PPC64_DATA_H__
|
|
|
7a3408 |
|
|
|
7a3408 |
# include <stdint.h>
|
|
|
7a3408 |
|
|
|
7a3408 |
-struct cpuPPCData {
|
|
|
7a3408 |
+struct cpuPPC64Data {
|
|
|
7a3408 |
uint32_t pvr;
|
|
|
7a3408 |
};
|
|
|
7a3408 |
|
|
|
7a3408 |
-#endif /* __VIR_CPU_PPC_DATA_H__ */
|
|
|
7a3408 |
+#endif /* __VIR_CPU_PPC64_DATA_H__ */
|
|
|
7a3408 |
--
|
|
|
7a3408 |
2.5.0
|
|
|
7a3408 |
|