aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/cpu-models.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-02-25 03:43:17 +0000
committerAlexander Graf <agraf@suse.de>2013-03-08 21:04:53 +0100
commite9a9607527746600a1af79ba63494ec596ec8584 (patch)
treee2ec27b70e5bbad0a9bce2d8fe3ca271605112f7 /target-ppc/cpu-models.h
parent35e21d3f53068911a98014577880f76c4734f31c (diff)
downloadqemu-arm-e9a9607527746600a1af79ba63494ec596ec8584.tar.gz
target-ppc: Move CPU aliases out of translate_init.c
Move array of CPU aliases to cpu-models.c, alongside model definitions. This requires to zero-terminate the aliases array since ARRAY_SIZE() can no longer be used in translate_init.c then. Suggested-by: Alexander Graf <agraf@suse.de> Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/cpu-models.h')
-rw-r--r--target-ppc/cpu-models.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/target-ppc/cpu-models.h b/target-ppc/cpu-models.h
index edff0f4c3c..a94f835121 100644
--- a/target-ppc/cpu-models.h
+++ b/target-ppc/cpu-models.h
@@ -21,6 +21,20 @@
#ifndef TARGET_PPC_CPU_MODELS_H
#define TARGET_PPC_CPU_MODELS_H
+/**
+ * PowerPCCPUAlias:
+ * @alias: The alias name.
+ * @model: The CPU model @alias refers to.
+ *
+ * A mapping entry from CPU @alias to CPU @model.
+ */
+typedef struct PowerPCCPUAlias {
+ const char *alias;
+ const char *model;
+} PowerPCCPUAlias;
+
+extern const PowerPCCPUAlias ppc_cpu_aliases[];
+
/*****************************************************************************/
/* PVR definitions for most known PowerPC */
enum {