diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1996-11-20 09:47:57 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1996-11-20 09:47:57 +0000 |
commit | 899232aba0644aa6cd0298bf06b06279eac6da76 (patch) | |
tree | f4dfb02848e0c17cf083afeefe1cf65727ef1336 /sim/h8300/tconfig.in | |
parent | d70e3e2b7b737dc55e48b7846097316e1d5e74f3 (diff) | |
download | gdb-899232aba0644aa6cd0298bf06b06279eac6da76.zip gdb-899232aba0644aa6cd0298bf06b06279eac6da76.tar.gz gdb-899232aba0644aa6cd0298bf06b06279eac6da76.tar.bz2 |
* 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.
Diffstat (limited to 'sim/h8300/tconfig.in')
-rw-r--r-- | sim/h8300/tconfig.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sim/h8300/tconfig.in b/sim/h8300/tconfig.in new file mode 100644 index 0000000..d3cef82 --- /dev/null +++ b/sim/h8300/tconfig.in @@ -0,0 +1,27 @@ +/* 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 |