From 20bca71d82598a015de0991196e45f0b5f7ead81 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 18 Apr 2015 04:19:56 -0400 Subject: sim: unify SIM_CPU definition Since every target typedefs this the same way, move it to the common code. We have to leave Blackfin behind here for now because of inter-dependencies on types and headers: sim-base.h includes sim-model.h which needs types in machs.h which needs types in bfim-sim.h which needs SIM_CPU. --- sim/common/sim-base.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/common/sim-base.h') diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h index e90e07c..21f61f4 100644 --- a/sim/common/sim-base.h +++ b/sim/common/sim-base.h @@ -72,6 +72,8 @@ typedef address_word sim_cia; #define INVALID_INSTRUCTION_ADDRESS ((address_word)0 - 1) #endif +/* TODO: Probably should just delete SIM_CPU. */ +typedef struct _sim_cpu SIM_CPU; typedef struct _sim_cpu sim_cpu; #include "sim-module.h" -- cgit v1.1