old-cross-binutils/sim/h8300/tconfig.in
David Edelsohn 899232aba0 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
(SIM_OBJS): Define.
	* configure.in: Simplify using macros in ../common/aclocal.m4.
	* configure: Regenerated.
	* inst.h (enum sim_state): Define.
	(cpu_state_type): New member `state'.  Set it whenever `exception'
	is set.
	* compile.c (sim_callback): New global.
	(sim_set_simcache_size): Renamed from sim_csize.
	(sim_resume, case O_SLEEP): Add right way to decode r0 but #if 0 out
	'cus it can't work.  Change main loop exit test to use cpu.state.
	(sim_trace): New function.
	(sim_stop_reason): Add right way to set results, but #if 0 out.
	(sim_size): New function.
	(sim_info): Redirect calls to printf_filtered through callback.
	(sim_set_callbacks): Record callback.
	* run.c: Deleted, using one in ../common now.
	* tconfig.in: New file.
1996-11-20 09:47:57 +00:00

27 lines
1 KiB
Text

/* h8300 target configuration file. */
/* Define this if the simulator supports profiling.
See the mips simulator for an example.
This enables the `-p foo' and `-s bar' options.
The target is required to provide sim_set_profile{,_size}. */
/* #define SIM_HAVE_PROFILE */
/* Define this if the simulator uses an instruction cache.
See the h8/300 simulator for an example.
This enables the `-c size' option to set the size of the cache.
The target is required to provide sim_set_simcache_size. */
#define SIM_HAVE_SIMCACHE
/* C statement to call after argument parsing is done and executable file
has been opened (with bfd_openr).
See h8300/tconfig.in for an example. */
#define SIM_PRE_LOAD(EXEC_BFD) \
do { \
if ((EXEC_BFD)->arch_info->mach == bfd_mach_h8300h \
|| (EXEC_BFD)->arch_info->mach == bfd_mach_h8300s) \
set_h8300h (1); \
} while (0)
/* FIXME: This is a quick hack for run.c so it can support the `-h' option.
It will eventually be replaced by a more general facility. */
#define SIM_H8300