]> xenbits.xensource.com Git - libvirt.git/commitdiff
Add one file cpu_ppc_data.h to define CPU data for PPC
authorLi Zhang <zhlcindy@gmail.com>
Mon, 15 Oct 2012 09:07:49 +0000 (17:07 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Oct 2012 08:03:34 +0000 (10:03 +0200)
CPU version can be got by PVR on PowerPC. So this PVR is defined in
the CPU data in cpuData structure.

Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
.mailmap
AUTHORS
src/cpu/cpu.h
src/cpu/cpu_ppc_data.h [new file with mode: 0644]

index 76e6513130cb9bc23f7219115560439915731cb9..98ff6dc8d6de59314bab1688b98b7175e4982054 100644 (file)
--- a/.mailmap
+++ b/.mailmap
@@ -34,6 +34,7 @@
 <gerd@egidy.de> <lists@egidy.de>
 <gerd@egidy.de> <gerd.von.egidy@intra2net.com>
 <benoar@dolka.fr> <benjamin.cama@telecom-bretagne.eu>
+<zhlcindy@linux.vnet.ibm.com> <zhlcindy@gmail.com>
 
 # Name consolidation:
 # Preferred author spelling <preferred email>
diff --git a/AUTHORS b/AUTHORS
index 27c4eda77513d27eac994819260dbc4cd17c81c1..221912dfbe3f4fae296b014803621a36aa33c725 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -268,6 +268,7 @@ Patches have also been contributed by:
   liguang              <lig.fnst@cn.fujitsu.com>
   Chuck Short          <zulcss@gmail.com>
   Alexander Larsson    <alexl@redhat.com>
+  Li Zhang             <zhlcindy@linux.vnet.ibm.com>
 
   [....send patches to get your name here....]
 
index 5ba742dd6e273305ba4c41be5839643c5987968d..01c732c2332218af9d1b558b53a0e458bfe27b88 100644 (file)
 # include "datatypes.h"
 # include "conf/cpu_conf.h"
 # include "cpu_x86_data.h"
+# include "cpu_ppc_data.h"
 
 
 union cpuData {
     struct cpuX86Data x86;
     /* generic driver needs no data */
+    /* PowerPC driver need data*/
+    struct cpuPPCData ppc;
 };
 
 
diff --git a/src/cpu/cpu_ppc_data.h b/src/cpu/cpu_ppc_data.h
new file mode 100644 (file)
index 0000000..685332a
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * cpu_ppc_data.h: PowerPC specific CPU data
+ *
+ * Copyright (C) 2012 IBM Corporation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library;  If not, see
+ * <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ *      Li Zhang <zhlcindy@linux.vnet.ibm.com>
+ */
+
+#ifndef __VIR_CPU_PPC_DATA_H__
+# define __VIR_CPU_PPC_DATA_H__
+
+# include <stdint.h>
+
+struct cpuPPCData {
+    uint32_t pvr;
+};
+
+#endif /* __VIR_CPU_PPC_DATA_H__ */