aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/tconfig.in
blob: d3cef82d92aa4fdd85524006089a0a6970265391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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