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.
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define SIM_MAIN_H
#include "sim-basics.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
#include "bfd.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
extern unsigned int pc;
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
struct _sim_cpu {
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Add note to clean this up.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#include "sim-basics.h"
#include "sim-signal.h"
+/* TODO: Delete this. Need to convert bu32/etc... to common sim types
+ and unwind the bfin-sim.h/machs.h include below first though. */
typedef struct _sim_cpu SIM_CPU;
#include "bfin-sim.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-base.h (SIM_CPU): New typedef.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* cgen-engine.h (CIA_ADDR): Delete.
#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"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
typedef long int word;
typedef unsigned long int uword;
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
#include "bfd.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define USING_SIM_BASE_H
-struct _sim_cpu;
-typedef struct _sim_cpu SIM_CPU;
-
#include "symcat.h"
#include "sim-basics.h"
#include "cgen-types.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
typedef long int word;
typedef unsigned long int uword;
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
#include "bfd.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define USING_SIM_BASE_H /* FIXME: quick hack */
-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
-typedef struct _sim_cpu SIM_CPU;
-
/* Set the mask of unsupported traces. */
#define WITH_TRACE \
(~(TRACE_alu | TRACE_decode | TRACE_memory | TRACE_model | TRACE_fpu \
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#include "sim-base.h"
#include "bfd.h"
-typedef struct _sim_cpu SIM_CPU;
-
#include "ft32-sim.h"
struct _sim_cpu {
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
};
#include "sim-basics.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
/* Structure used to describe addressing */
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define USING_SIM_BASE_H /* FIXME: quick hack */
-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
-typedef struct _sim_cpu SIM_CPU;
-
/* sim-basics.h includes config.h but cgen-types.h must be included before
sim-basics.h and cgen-types.h needs config.h. */
#include "config.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define USING_SIM_BASE_H /* FIXME: quick hack */
-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
-typedef struct _sim_cpu SIM_CPU;
-
#include "symcat.h"
#include "sim-basics.h"
#include "cgen-types.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define USING_SIM_BASE_H /* FIXME: quick hack */
-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
-typedef struct _sim_cpu SIM_CPU;
-
#include "symcat.h"
#include "sim-basics.h"
#include "cgen-types.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define SIM_HANDLES_LMA 1
#include "sim-basics.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-signal.h"
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
typedef long int word;
typedef unsigned long int uword;
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
#include "bfd.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#include "microblaze.h"
#include "sim-basics.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
/* The machine state.
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
mips_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), (TRANSFER), (ERROR))
#include "sim-basics.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
#include "bfd.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#include "itable.h"
#include "idecode.h"
-typedef struct _sim_cpu SIM_CPU;
-
#define WITH_WATCHPOINTS 1
#define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define SIM_MAIN_H
#include "sim-basics.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
#include "bfd.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#include "sim-basics.h"
#include "sim-signal.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "msp430-sim.h"
#include "sim-base.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#define SIM_MAIN_H
#include "sim-basics.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
typedef struct
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (CIA_ADDR): Define.
#define USING_SIM_BASE_H /* FIXME: quick hack */
-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
-typedef struct _sim_cpu SIM_CPU;
-
/* sim-basics.h includes config.h but cgen-types.h must be included before
sim-basics.h and cgen-types.h needs config.h. */
#include "config.h"
+2015-04-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h (SIM_CPU): Delete.
+
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (sim_cia): Delete.
#include "sim-basics.h"
#include "sim-signal.h"
#include "sim-fpu.h"
-
-typedef struct _sim_cpu SIM_CPU;
-
#include "sim-base.h"
#include "simops.h"