From 474a2d9f5f8a080e30812525729c3a8b7baa61d6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 8 Aug 2016 13:06:49 +0800 Subject: sim: bfin: split out common mach/model defines into arch.h [PR sim/20438] The current machs.h mixes common enums with Blackfin-specific defines. This causes us troubles with header inclusion order such that we can't drop the old SIM_CPU typedef (which is duplicated in common code). By splitting the two up, we can unwind this dependency chain, and drop the old typedef. It also fixes building with older gcc versions. --- sim/bfin/machs.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'sim/bfin/machs.h') diff --git a/sim/bfin/machs.h b/sim/bfin/machs.h index 0372982..36819ae 100644 --- a/sim/bfin/machs.h +++ b/sim/bfin/machs.h @@ -21,19 +21,6 @@ #ifndef _BFIN_MACHS_H_ #define _BFIN_MACHS_H_ -typedef enum model_type { -#define P(n) MODEL_BF##n, -#include "proc_list.def" -#undef P - MODEL_MAX -} MODEL_TYPE; - -typedef enum mach_attr { - MACH_BASE, - MACH_BFIN, - MACH_MAX -} MACH_ATTR; - #define CPU_MODEL_NUM(cpu) MODEL_NUM (CPU_MODEL (cpu)) /* XXX: Some of this probably belongs in CPU_MODEL. */ @@ -46,13 +33,6 @@ void bfin_model_cpu_init (SIM_DESC, SIM_CPU *); bu32 bfin_model_get_chipid (SIM_DESC); bu32 bfin_model_get_dspid (SIM_DESC); -enum { -#define I(insn) BFIN_INSN_##insn, -#include "insn_list.def" -#undef I - BFIN_INSN_MAX -}; - #define BFIN_COREMMR_CEC_BASE 0xFFE02100 #define BFIN_COREMMR_CEC_SIZE (4 * 5) #define BFIN_COREMMR_CTIMER_BASE 0xFFE03000 -- cgit v1.1