aboutsummaryrefslogtreecommitdiff
path: root/sim/cris/sim-main.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2009-01-03 21:00:48 +0000
committerHans-Peter Nilsson <hp@axis.com>2009-01-03 21:00:48 +0000
commitddf2c97233d9d3415e6ccac3256d08bc7aedba48 (patch)
tree16754062c4d48c1886942d661cf553d9199207ee /sim/cris/sim-main.h
parent2e1566c6dacb9e40d35df48b487364e6911f088e (diff)
downloadfsf-binutils-gdb-ddf2c97233d9d3415e6ccac3256d08bc7aedba48.zip
fsf-binutils-gdb-ddf2c97233d9d3415e6ccac3256d08bc7aedba48.tar.gz
fsf-binutils-gdb-ddf2c97233d9d3415e6ccac3256d08bc7aedba48.tar.bz2
* cris/sim-main.h (struct _sim_cpu): New member
set_target_thread_data. * cris/crisv32f.c (CRIS_TLS_REGISTER): Define. * cris/crisv10f.c: Ditto. * cris/cris-tmpl.c (MY (set_target_thread_data)): New function. (MY (f_specific_init)): Set new _sim_cpu member to new function. * cris/traps.c (TARGET_SYS_set_thread_area): Define. (cris_break_13_handler) <case TARGET_SYS_set_thread_area>: New case.
Diffstat (limited to 'sim/cris/sim-main.h')
-rw-r--r--sim/cris/sim-main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/cris/sim-main.h b/sim/cris/sim-main.h
index 576050a..a39ae17 100644
--- a/sim/cris/sim-main.h
+++ b/sim/cris/sim-main.h
@@ -191,6 +191,9 @@ struct _sim_cpu {
void* (*make_thread_cpu_data) (SIM_CPU *, void *);
size_t thread_cpu_data_size;
+ /* The register differs, so we dispatch to a CPU-specific function. */
+ void (*set_target_thread_data) (SIM_CPU *, USI);
+
/* CPU-model specific parts go here.
Note that in files that don't need to access these pieces WANT_CPU_FOO
won't be defined and thus these parts won't appear. This is ok in the