From 0a18a6b8adb8e5d3ec215cf53e20dce1c600e201 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 5 Dec 1998 08:09:18 +0000 Subject: * configure.in: Call SIM_AC_OPTION_INLINE. * configure: Regenerate. * sim-main.h: Protect against multiple inclusion. Don't include cgen-scache.h,cgen-cpu.h,cgen-trace.h,cpuall.h. Done by cgen-sim.h now. * tconfig.in (SIM_HAVE_MODEL): Delete, moved to cgen-types.h. * cpuall.h: Regenerate. * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate. * mloop.in (extract16): Make static inline again. Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp. (extract32): Ditto. Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp. (execute): Test ARGBUF_PROFILE_P before profiling. Update calls to TRACE_INSN_INIT,TRACE_INSN_FINI. * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate. * mloopx.in: Rewrite. --- sim/m32r/sim-main.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'sim/m32r/sim-main.h') diff --git a/sim/m32r/sim-main.h b/sim/m32r/sim-main.h index 923465f..03f06b9 100644 --- a/sim/m32r/sim-main.h +++ b/sim/m32r/sim-main.h @@ -1,19 +1,19 @@ /* Main header for the m32r. */ +#ifndef SIM_MAIN_H +#define SIM_MAIN_H + #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" - #include "ansidecl.h" #include "symcat.h" +#include "sim-basics.h" #include "cgen-types.h" +#include "cpu-opc.h" #include "arch.h" -#include "sim-basics.h" /* These must be defined before sim-base.h. */ typedef USI sim_cia; @@ -23,11 +23,7 @@ typedef USI sim_cia; #include "sim-base.h" #include "cgen-sim.h" -#include "cgen-scache.h" -#include "cgen-cpu.h" -#include "cgen-trace.h" #include "cpu-sim.h" -#include "cpuall.h" /* The _sim_cpu struct. */ @@ -78,3 +74,5 @@ m32r_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \ /* Default memory size. */ #define M32R_DEFAULT_MEM_SIZE 0x800000 /* 8M */ + +#endif /* SIM_MAIN_H */ -- cgit v1.1