aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/tconfig.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/h8300/tconfig.in')
-rw-r--r--sim/h8300/tconfig.in27
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