7a3408
From e59a9b1e5c000a9c20b8af6cce57bffb9c92221f Mon Sep 17 00:00:00 2001
7a3408
Message-Id: <e59a9b1e5c000a9c20b8af6cce57bffb9c92221f@dist-git>
7a3408
From: Andrea Bolognani <abologna@redhat.com>
7a3408
Date: Tue, 11 Aug 2015 17:15:51 +0200
7a3408
Subject: [PATCH] cpu: Rename {powerpc, ppc} => ppc64 (internal symbols)
7a3408
7a3408
Update the names of the symbols used internally by the driver.
7a3408
7a3408
No functional changes.
7a3408
7a3408
(cherry picked from commit 3d1515890b8c3630bc7d4c865f3309c154ade174)
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_ppc64.c | 250 ++++++++++++++++++++++++++--------------------------
7a3408
 1 file changed, 125 insertions(+), 125 deletions(-)
7a3408
7a3408
diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c
7a3408
index bec4bf8..7a48903 100644
7a3408
--- a/src/cpu/cpu_ppc64.c
7a3408
+++ b/src/cpu/cpu_ppc64.c
7a3408
@@ -40,26 +40,26 @@ VIR_LOG_INIT("cpu.cpu_ppc64");
7a3408
 
7a3408
 static const virArch archs[] = { VIR_ARCH_PPC64, VIR_ARCH_PPC64LE };
7a3408
 
7a3408
-struct ppc_vendor {
7a3408
+struct ppc64_vendor {
7a3408
     char *name;
7a3408
-    struct ppc_vendor *next;
7a3408
+    struct ppc64_vendor *next;
7a3408
 };
7a3408
 
7a3408
-struct ppc_model {
7a3408
+struct ppc64_model {
7a3408
     char *name;
7a3408
-    const struct ppc_vendor *vendor;
7a3408
+    const struct ppc64_vendor *vendor;
7a3408
     struct cpuPPC64Data data;
7a3408
-    struct ppc_model *next;
7a3408
+    struct ppc64_model *next;
7a3408
 };
7a3408
 
7a3408
-struct ppc_map {
7a3408
-    struct ppc_vendor *vendors;
7a3408
-    struct ppc_model *models;
7a3408
+struct ppc64_map {
7a3408
+    struct ppc64_vendor *vendors;
7a3408
+    struct ppc64_model *models;
7a3408
 };
7a3408
 
7a3408
 
7a3408
 static void
7a3408
-ppcModelFree(struct ppc_model *model)
7a3408
+ppc64ModelFree(struct ppc64_model *model)
7a3408
 {
7a3408
     if (model == NULL)
7a3408
         return;
7a3408
@@ -68,11 +68,11 @@ ppcModelFree(struct ppc_model *model)
7a3408
     VIR_FREE(model);
7a3408
 }
7a3408
 
7a3408
-static struct ppc_model *
7a3408
-ppcModelFind(const struct ppc_map *map,
7a3408
-             const char *name)
7a3408
+static struct ppc64_model *
7a3408
+ppc64ModelFind(const struct ppc64_map *map,
7a3408
+               const char *name)
7a3408
 {
7a3408
-    struct ppc_model *model;
7a3408
+    struct ppc64_model *model;
7a3408
 
7a3408
     model = map->models;
7a3408
     while (model != NULL) {
7a3408
@@ -85,11 +85,11 @@ ppcModelFind(const struct ppc_map *map,
7a3408
     return NULL;
7a3408
 }
7a3408
 
7a3408
-static struct ppc_model *
7a3408
-ppcModelFindPVR(const struct ppc_map *map,
7a3408
-                uint32_t pvr)
7a3408
+static struct ppc64_model *
7a3408
+ppc64ModelFindPVR(const struct ppc64_map *map,
7a3408
+                  uint32_t pvr)
7a3408
 {
7a3408
-    struct ppc_model *model;
7a3408
+    struct ppc64_model *model;
7a3408
 
7a3408
     model = map->models;
7a3408
     while (model != NULL) {
7a3408
@@ -105,19 +105,19 @@ ppcModelFindPVR(const struct ppc_map *map,
7a3408
      * If the exact CPU isn't found, return the nearest matching CPU generation
7a3408
      */
7a3408
     if (pvr & 0x0000FFFFul)
7a3408
-        return ppcModelFindPVR(map, (pvr & 0xFFFF0000ul));
7a3408
+        return ppc64ModelFindPVR(map, (pvr & 0xFFFF0000ul));
7a3408
 
7a3408
     return NULL;
7a3408
 }
7a3408
 
7a3408
-static struct ppc_model *
7a3408
-ppcModelCopy(const struct ppc_model *model)
7a3408
+static struct ppc64_model *
7a3408
+ppc64ModelCopy(const struct ppc64_model *model)
7a3408
 {
7a3408
-    struct ppc_model *copy;
7a3408
+    struct ppc64_model *copy;
7a3408
 
7a3408
     if (VIR_ALLOC(copy) < 0 ||
7a3408
         VIR_STRDUP(copy->name, model->name) < 0) {
7a3408
-        ppcModelFree(copy);
7a3408
+        ppc64ModelFree(copy);
7a3408
         return NULL;
7a3408
     }
7a3408
 
7a3408
@@ -127,11 +127,11 @@ ppcModelCopy(const struct ppc_model *model)
7a3408
     return copy;
7a3408
 }
7a3408
 
7a3408
-static struct ppc_vendor *
7a3408
-ppcVendorFind(const struct ppc_map *map,
7a3408
-              const char *name)
7a3408
+static struct ppc64_vendor *
7a3408
+ppc64VendorFind(const struct ppc64_map *map,
7a3408
+                const char *name)
7a3408
 {
7a3408
-    struct ppc_vendor *vendor;
7a3408
+    struct ppc64_vendor *vendor;
7a3408
 
7a3408
     vendor = map->vendors;
7a3408
     while (vendor) {
7a3408
@@ -145,7 +145,7 @@ ppcVendorFind(const struct ppc_map *map,
7a3408
 }
7a3408
 
7a3408
 static void
7a3408
-ppcVendorFree(struct ppc_vendor *vendor)
7a3408
+ppc64VendorFree(struct ppc64_vendor *vendor)
7a3408
 {
7a3408
     if (!vendor)
7a3408
         return;
7a3408
@@ -154,34 +154,34 @@ ppcVendorFree(struct ppc_vendor *vendor)
7a3408
     VIR_FREE(vendor);
7a3408
 }
7a3408
 
7a3408
-static struct ppc_model *
7a3408
-ppcModelFromCPU(const virCPUDef *cpu,
7a3408
-                const struct ppc_map *map)
7a3408
+static struct ppc64_model *
7a3408
+ppc64ModelFromCPU(const virCPUDef *cpu,
7a3408
+                  const struct ppc64_map *map)
7a3408
 {
7a3408
-    struct ppc_model *model = NULL;
7a3408
+    struct ppc64_model *model = NULL;
7a3408
 
7a3408
-    if ((model = ppcModelFind(map, cpu->model)) == NULL) {
7a3408
+    if ((model = ppc64ModelFind(map, cpu->model)) == NULL) {
7a3408
         virReportError(VIR_ERR_INTERNAL_ERROR,
7a3408
                        _("Unknown CPU model %s"), cpu->model);
7a3408
         goto error;
7a3408
     }
7a3408
 
7a3408
-    if ((model = ppcModelCopy(model)) == NULL)
7a3408
+    if ((model = ppc64ModelCopy(model)) == NULL)
7a3408
         goto error;
7a3408
 
7a3408
     return model;
7a3408
 
7a3408
  error:
7a3408
-    ppcModelFree(model);
7a3408
+    ppc64ModelFree(model);
7a3408
     return NULL;
7a3408
 }
7a3408
 
7a3408
 
7a3408
 static int
7a3408
-ppcVendorLoad(xmlXPathContextPtr ctxt,
7a3408
-              struct ppc_map *map)
7a3408
+ppc64VendorLoad(xmlXPathContextPtr ctxt,
7a3408
+                struct ppc64_map *map)
7a3408
 {
7a3408
-    struct ppc_vendor *vendor = NULL;
7a3408
+    struct ppc64_vendor *vendor = NULL;
7a3408
 
7a3408
     if (VIR_ALLOC(vendor) < 0)
7a3408
         return -1;
7a3408
@@ -193,7 +193,7 @@ ppcVendorLoad(xmlXPathContextPtr ctxt,
7a3408
         goto ignore;
7a3408
     }
7a3408
 
7a3408
-    if (ppcVendorFind(map, vendor->name)) {
7a3408
+    if (ppc64VendorFind(map, vendor->name)) {
7a3408
         virReportError(VIR_ERR_INTERNAL_ERROR,
7a3408
                        _("CPU vendor %s already defined"), vendor->name);
7a3408
         goto ignore;
7a3408
@@ -210,15 +210,15 @@ ppcVendorLoad(xmlXPathContextPtr ctxt,
7a3408
     return 0;
7a3408
 
7a3408
  ignore:
7a3408
-    ppcVendorFree(vendor);
7a3408
+    ppc64VendorFree(vendor);
7a3408
     goto cleanup;
7a3408
 }
7a3408
 
7a3408
 static int
7a3408
-ppcModelLoad(xmlXPathContextPtr ctxt,
7a3408
-             struct ppc_map *map)
7a3408
+ppc64ModelLoad(xmlXPathContextPtr ctxt,
7a3408
+               struct ppc64_map *map)
7a3408
 {
7a3408
-    struct ppc_model *model;
7a3408
+    struct ppc64_model *model;
7a3408
     char *vendor = NULL;
7a3408
     unsigned long pvr;
7a3408
 
7a3408
@@ -232,7 +232,7 @@ ppcModelLoad(xmlXPathContextPtr ctxt,
7a3408
         goto ignore;
7a3408
     }
7a3408
 
7a3408
-    if (ppcModelFind(map, model->name)) {
7a3408
+    if (ppc64ModelFind(map, model->name)) {
7a3408
         virReportError(VIR_ERR_INTERNAL_ERROR,
7a3408
                        _("CPU model %s already defined"), model->name);
7a3408
         goto ignore;
7a3408
@@ -247,7 +247,7 @@ ppcModelLoad(xmlXPathContextPtr ctxt,
7a3408
             goto ignore;
7a3408
         }
7a3408
 
7a3408
-        if (!(model->vendor = ppcVendorFind(map, vendor))) {
7a3408
+        if (!(model->vendor = ppc64VendorFind(map, vendor))) {
7a3408
             virReportError(VIR_ERR_INTERNAL_ERROR,
7a3408
                            _("Unknown vendor %s referenced by CPU model %s"),
7a3408
                            vendor, model->name);
7a3408
@@ -276,22 +276,22 @@ ppcModelLoad(xmlXPathContextPtr ctxt,
7a3408
     return 0;
7a3408
 
7a3408
  ignore:
7a3408
-    ppcModelFree(model);
7a3408
+    ppc64ModelFree(model);
7a3408
     goto cleanup;
7a3408
 }
7a3408
 
7a3408
 static int
7a3408
-ppcMapLoadCallback(cpuMapElement element,
7a3408
-                   xmlXPathContextPtr ctxt,
7a3408
-                   void *data)
7a3408
+ppc64MapLoadCallback(cpuMapElement element,
7a3408
+                     xmlXPathContextPtr ctxt,
7a3408
+                     void *data)
7a3408
 {
7a3408
-    struct ppc_map *map = data;
7a3408
+    struct ppc64_map *map = data;
7a3408
 
7a3408
     switch (element) {
7a3408
     case CPU_MAP_ELEMENT_VENDOR:
7a3408
-        return ppcVendorLoad(ctxt, map);
7a3408
+        return ppc64VendorLoad(ctxt, map);
7a3408
     case CPU_MAP_ELEMENT_MODEL:
7a3408
-        return ppcModelLoad(ctxt, map);
7a3408
+        return ppc64ModelLoad(ctxt, map);
7a3408
     case CPU_MAP_ELEMENT_FEATURE:
7a3408
     case CPU_MAP_ELEMENT_LAST:
7a3408
         break;
7a3408
@@ -301,46 +301,46 @@ ppcMapLoadCallback(cpuMapElement element,
7a3408
 }
7a3408
 
7a3408
 static void
7a3408
-ppcMapFree(struct ppc_map *map)
7a3408
+ppc64MapFree(struct ppc64_map *map)
7a3408
 {
7a3408
     if (map == NULL)
7a3408
         return;
7a3408
 
7a3408
     while (map->models != NULL) {
7a3408
-        struct ppc_model *model = map->models;
7a3408
+        struct ppc64_model *model = map->models;
7a3408
         map->models = model->next;
7a3408
-        ppcModelFree(model);
7a3408
+        ppc64ModelFree(model);
7a3408
     }
7a3408
 
7a3408
     while (map->vendors != NULL) {
7a3408
-        struct ppc_vendor *vendor = map->vendors;
7a3408
+        struct ppc64_vendor *vendor = map->vendors;
7a3408
         map->vendors = vendor->next;
7a3408
-        ppcVendorFree(vendor);
7a3408
+        ppc64VendorFree(vendor);
7a3408
     }
7a3408
 
7a3408
     VIR_FREE(map);
7a3408
 }
7a3408
 
7a3408
-static struct ppc_map *
7a3408
-ppcLoadMap(void)
7a3408
+static struct ppc64_map *
7a3408
+ppc64LoadMap(void)
7a3408
 {
7a3408
-    struct ppc_map *map;
7a3408
+    struct ppc64_map *map;
7a3408
 
7a3408
     if (VIR_ALLOC(map) < 0)
7a3408
         return NULL;
7a3408
 
7a3408
-    if (cpuMapLoad("ppc64", ppcMapLoadCallback, map) < 0)
7a3408
+    if (cpuMapLoad("ppc64", ppc64MapLoadCallback, map) < 0)
7a3408
         goto error;
7a3408
 
7a3408
     return map;
7a3408
 
7a3408
  error:
7a3408
-    ppcMapFree(map);
7a3408
+    ppc64MapFree(map);
7a3408
     return NULL;
7a3408
 }
7a3408
 
7a3408
 static virCPUDataPtr
7a3408
-ppcMakeCPUData(virArch arch, struct cpuPPC64Data *data)
7a3408
+ppc64MakeCPUData(virArch arch, struct cpuPPC64Data *data)
7a3408
 {
7a3408
     virCPUDataPtr cpuData;
7a3408
 
7a3408
@@ -355,15 +355,15 @@ ppcMakeCPUData(virArch arch, struct cpuPPC64Data *data)
7a3408
 }
7a3408
 
7a3408
 static virCPUCompareResult
7a3408
-ppcCompute(virCPUDefPtr host,
7a3408
-           const virCPUDef *cpu,
7a3408
-           virCPUDataPtr *guestData,
7a3408
-           char **message)
7a3408
+ppc64Compute(virCPUDefPtr host,
7a3408
+             const virCPUDef *cpu,
7a3408
+             virCPUDataPtr *guestData,
7a3408
+             char **message)
7a3408
 
7a3408
 {
7a3408
-    struct ppc_map *map = NULL;
7a3408
-    struct ppc_model *host_model = NULL;
7a3408
-    struct ppc_model *guest_model = NULL;
7a3408
+    struct ppc64_map *map = NULL;
7a3408
+    struct ppc64_model *host_model = NULL;
7a3408
+    struct ppc64_model *guest_model = NULL;
7a3408
 
7a3408
     virCPUCompareResult ret = VIR_CPU_COMPARE_ERROR;
7a3408
     virArch arch;
7a3408
@@ -411,9 +411,9 @@ ppcCompute(virCPUDefPtr host,
7a3408
         goto cleanup;
7a3408
     }
7a3408
 
7a3408
-    if (!(map = ppcLoadMap()) ||
7a3408
-        !(host_model = ppcModelFromCPU(host, map)) ||
7a3408
-        !(guest_model = ppcModelFromCPU(cpu, map)))
7a3408
+    if (!(map = ppc64LoadMap()) ||
7a3408
+        !(host_model = ppc64ModelFromCPU(host, map)) ||
7a3408
+        !(guest_model = ppc64ModelFromCPU(cpu, map)))
7a3408
         goto cleanup;
7a3408
 
7a3408
     if (guestData != NULL) {
7a3408
@@ -433,23 +433,23 @@ ppcCompute(virCPUDefPtr host,
7a3408
             goto cleanup;
7a3408
         }
7a3408
 
7a3408
-        if (!(*guestData = ppcMakeCPUData(arch, &guest_model->data)))
7a3408
+        if (!(*guestData = ppc64MakeCPUData(arch, &guest_model->data)))
7a3408
             goto cleanup;
7a3408
     }
7a3408
 
7a3408
     ret = VIR_CPU_COMPARE_IDENTICAL;
7a3408
 
7a3408
  cleanup:
7a3408
-    ppcMapFree(map);
7a3408
-    ppcModelFree(host_model);
7a3408
-    ppcModelFree(guest_model);
7a3408
+    ppc64MapFree(map);
7a3408
+    ppc64ModelFree(host_model);
7a3408
+    ppc64ModelFree(guest_model);
7a3408
     return ret;
7a3408
 }
7a3408
 
7a3408
 static virCPUCompareResult
7a3408
-ppcCompare(virCPUDefPtr host,
7a3408
-           virCPUDefPtr cpu,
7a3408
-           bool failIncompatible)
7a3408
+ppc64Compare(virCPUDefPtr host,
7a3408
+             virCPUDefPtr cpu,
7a3408
+             bool failIncompatible)
7a3408
 {
7a3408
     if ((cpu->arch == VIR_ARCH_NONE || host->arch == cpu->arch) &&
7a3408
         STREQ(host->model, cpu->model))
7a3408
@@ -464,23 +464,23 @@ ppcCompare(virCPUDefPtr host,
7a3408
 }
7a3408
 
7a3408
 static int
7a3408
-ppcDecode(virCPUDefPtr cpu,
7a3408
-          const virCPUData *data,
7a3408
-          const char **models,
7a3408
-          unsigned int nmodels,
7a3408
-          const char *preferred ATTRIBUTE_UNUSED,
7a3408
-          unsigned int flags)
7a3408
+ppc64Decode(virCPUDefPtr cpu,
7a3408
+            const virCPUData *data,
7a3408
+            const char **models,
7a3408
+            unsigned int nmodels,
7a3408
+            const char *preferred ATTRIBUTE_UNUSED,
7a3408
+            unsigned int flags)
7a3408
 {
7a3408
     int ret = -1;
7a3408
-    struct ppc_map *map;
7a3408
-    const struct ppc_model *model;
7a3408
+    struct ppc64_map *map;
7a3408
+    const struct ppc64_model *model;
7a3408
 
7a3408
     virCheckFlags(VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, -1);
7a3408
 
7a3408
-    if (data == NULL || (map = ppcLoadMap()) == NULL)
7a3408
+    if (data == NULL || (map = ppc64LoadMap()) == NULL)
7a3408
         return -1;
7a3408
 
7a3408
-    if (!(model = ppcModelFindPVR(map, data->data.ppc64.pvr))) {
7a3408
+    if (!(model = ppc64ModelFindPVR(map, data->data.ppc64.pvr))) {
7a3408
         virReportError(VIR_ERR_OPERATION_FAILED,
7a3408
                        _("Cannot find CPU model with PVR 0x%08x"),
7a3408
                        data->data.ppc64.pvr);
7a3408
@@ -502,14 +502,14 @@ ppcDecode(virCPUDefPtr cpu,
7a3408
     ret = 0;
7a3408
 
7a3408
  cleanup:
7a3408
-    ppcMapFree(map);
7a3408
+    ppc64MapFree(map);
7a3408
 
7a3408
     return ret;
7a3408
 }
7a3408
 
7a3408
 
7a3408
 static void
7a3408
-ppcDataFree(virCPUDataPtr data)
7a3408
+ppc64DataFree(virCPUDataPtr data)
7a3408
 {
7a3408
     if (data == NULL)
7a3408
         return;
7a3408
@@ -518,7 +518,7 @@ ppcDataFree(virCPUDataPtr data)
7a3408
 }
7a3408
 
7a3408
 static virCPUDataPtr
7a3408
-ppcNodeData(virArch arch)
7a3408
+ppc64NodeData(virArch arch)
7a3408
 {
7a3408
     virCPUDataPtr cpuData;
7a3408
 
7a3408
@@ -536,17 +536,17 @@ ppcNodeData(virArch arch)
7a3408
 }
7a3408
 
7a3408
 static virCPUCompareResult
7a3408
-ppcGuestData(virCPUDefPtr host,
7a3408
-             virCPUDefPtr guest,
7a3408
-             virCPUDataPtr *data,
7a3408
-             char **message)
7a3408
+ppc64GuestData(virCPUDefPtr host,
7a3408
+               virCPUDefPtr guest,
7a3408
+               virCPUDataPtr *data,
7a3408
+               char **message)
7a3408
 {
7a3408
-    return ppcCompute(host, guest, data, message);
7a3408
+    return ppc64Compute(host, guest, data, message);
7a3408
 }
7a3408
 
7a3408
 static int
7a3408
-ppcUpdate(virCPUDefPtr guest,
7a3408
-          const virCPUDef *host)
7a3408
+ppc64Update(virCPUDefPtr guest,
7a3408
+            const virCPUDef *host)
7a3408
 {
7a3408
     switch ((virCPUMode) guest->mode) {
7a3408
     case VIR_CPU_MODE_HOST_MODEL:
7a3408
@@ -568,32 +568,32 @@ ppcUpdate(virCPUDefPtr guest,
7a3408
 }
7a3408
 
7a3408
 static virCPUDefPtr
7a3408
-ppcBaseline(virCPUDefPtr *cpus,
7a3408
-            unsigned int ncpus,
7a3408
-            const char **models ATTRIBUTE_UNUSED,
7a3408
-            unsigned int nmodels ATTRIBUTE_UNUSED,
7a3408
-            unsigned int flags)
7a3408
+ppc64Baseline(virCPUDefPtr *cpus,
7a3408
+              unsigned int ncpus,
7a3408
+              const char **models ATTRIBUTE_UNUSED,
7a3408
+              unsigned int nmodels ATTRIBUTE_UNUSED,
7a3408
+              unsigned int flags)
7a3408
 {
7a3408
-    struct ppc_map *map = NULL;
7a3408
-    const struct ppc_model *model;
7a3408
-    const struct ppc_vendor *vendor = NULL;
7a3408
+    struct ppc64_map *map = NULL;
7a3408
+    const struct ppc64_model *model;
7a3408
+    const struct ppc64_vendor *vendor = NULL;
7a3408
     virCPUDefPtr cpu = NULL;
7a3408
     size_t i;
7a3408
 
7a3408
     virCheckFlags(VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES |
7a3408
                   VIR_CONNECT_BASELINE_CPU_MIGRATABLE, NULL);
7a3408
 
7a3408
-    if (!(map = ppcLoadMap()))
7a3408
+    if (!(map = ppc64LoadMap()))
7a3408
         goto error;
7a3408
 
7a3408
-    if (!(model = ppcModelFind(map, cpus[0]->model))) {
7a3408
+    if (!(model = ppc64ModelFind(map, cpus[0]->model))) {
7a3408
         virReportError(VIR_ERR_INTERNAL_ERROR,
7a3408
                        _("Unknown CPU model %s"), cpus[0]->model);
7a3408
         goto error;
7a3408
     }
7a3408
 
7a3408
     for (i = 0; i < ncpus; i++) {
7a3408
-        const struct ppc_vendor *vnd;
7a3408
+        const struct ppc64_vendor *vnd;
7a3408
 
7a3408
         if (STRNEQ(cpus[i]->model, model->name)) {
7a3408
             virReportError(VIR_ERR_OPERATION_FAILED, "%s",
7a3408
@@ -604,7 +604,7 @@ ppcBaseline(virCPUDefPtr *cpus,
7a3408
         if (!cpus[i]->vendor)
7a3408
             continue;
7a3408
 
7a3408
-        if (!(vnd = ppcVendorFind(map, cpus[i]->vendor))) {
7a3408
+        if (!(vnd = ppc64VendorFind(map, cpus[i]->vendor))) {
7a3408
             virReportError(VIR_ERR_OPERATION_FAILED,
7a3408
                            _("Unknown CPU vendor %s"), cpus[i]->vendor);
7a3408
             goto error;
7a3408
@@ -641,7 +641,7 @@ ppcBaseline(virCPUDefPtr *cpus,
7a3408
     cpu->match = VIR_CPU_MATCH_EXACT;
7a3408
 
7a3408
  cleanup:
7a3408
-    ppcMapFree(map);
7a3408
+    ppc64MapFree(map);
7a3408
 
7a3408
     return cpu;
7a3408
 
7a3408
@@ -652,14 +652,14 @@ ppcBaseline(virCPUDefPtr *cpus,
7a3408
 }
7a3408
 
7a3408
 static int
7a3408
-ppcGetModels(char ***models)
7a3408
+ppc64GetModels(char ***models)
7a3408
 {
7a3408
-    struct ppc_map *map;
7a3408
-    struct ppc_model *model;
7a3408
+    struct ppc64_map *map;
7a3408
+    struct ppc64_model *model;
7a3408
     char *name;
7a3408
     size_t nmodels = 0;
7a3408
 
7a3408
-    if (!(map = ppcLoadMap()))
7a3408
+    if (!(map = ppc64LoadMap()))
7a3408
         goto error;
7a3408
 
7a3408
     if (models && VIR_ALLOC_N(*models, 0) < 0)
7a3408
@@ -681,7 +681,7 @@ ppcGetModels(char ***models)
7a3408
     }
7a3408
 
7a3408
  cleanup:
7a3408
-    ppcMapFree(map);
7a3408
+    ppc64MapFree(map);
7a3408
 
7a3408
     return nmodels;
7a3408
 
7a3408
@@ -698,14 +698,14 @@ struct cpuArchDriver cpuDriverPPC64 = {
7a3408
     .name = "ppc64",
7a3408
     .arch = archs,
7a3408
     .narch = ARRAY_CARDINALITY(archs),
7a3408
-    .compare    = ppcCompare,
7a3408
-    .decode     = ppcDecode,
7a3408
+    .compare    = ppc64Compare,
7a3408
+    .decode     = ppc64Decode,
7a3408
     .encode     = NULL,
7a3408
-    .free       = ppcDataFree,
7a3408
-    .nodeData   = ppcNodeData,
7a3408
-    .guestData  = ppcGuestData,
7a3408
-    .baseline   = ppcBaseline,
7a3408
-    .update     = ppcUpdate,
7a3408
+    .free       = ppc64DataFree,
7a3408
+    .nodeData   = ppc64NodeData,
7a3408
+    .guestData  = ppc64GuestData,
7a3408
+    .baseline   = ppc64Baseline,
7a3408
+    .update     = ppc64Update,
7a3408
     .hasFeature = NULL,
7a3408
-    .getModels  = ppcGetModels,
7a3408
+    .getModels  = ppc64GetModels,
7a3408
 };
7a3408
-- 
7a3408
2.5.0
7a3408