Commit | Line | Data |
---|---|---|
899232ab DE |
1 | /* h8300 target configuration file. */ |
2 | ||
3 | /* Define this if the simulator supports profiling. | |
4 | See the mips simulator for an example. | |
5 | This enables the `-p foo' and `-s bar' options. | |
6 | The target is required to provide sim_set_profile{,_size}. */ | |
7 | /* #define SIM_HAVE_PROFILE */ | |
8 | ||
9 | /* Define this if the simulator uses an instruction cache. | |
10 | See the h8/300 simulator for an example. | |
11 | This enables the `-c size' option to set the size of the cache. | |
12 | The target is required to provide sim_set_simcache_size. */ | |
13 | #define SIM_HAVE_SIMCACHE | |
14 | ||
15 | /* C statement to call after argument parsing is done and executable file | |
16 | has been opened (with bfd_openr). | |
17 | See h8300/tconfig.in for an example. */ | |
18 | #define SIM_PRE_LOAD(EXEC_BFD) \ | |
19 | do { \ | |
20 | if ((EXEC_BFD)->arch_info->mach == bfd_mach_h8300h \ | |
21 | || (EXEC_BFD)->arch_info->mach == bfd_mach_h8300s) \ | |
22 | set_h8300h (1); \ | |
23 | } while (0) | |
24 | ||
25 | /* FIXME: This is a quick hack for run.c so it can support the `-h' option. | |
26 | It will eventually be replaced by a more general facility. */ | |
27 | #define SIM_H8300 |