From e9a9607527746600a1af79ba63494ec596ec8584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 25 Feb 2013 03:43:17 +0000 Subject: target-ppc: Move CPU aliases out of translate_init.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/cpu-models.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'target-ppc/cpu-models.h') 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 { -- cgit v1.2.3