summaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog8
-rw-r--r--sim/common/Makefile.in1
-rw-r--r--sim/common/sim-core.c19
3 files changed, 27 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index f95071fdf5a..d287cdfe245 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,11 @@
+2004-01-16 Ben Elliston <bje@wasabisystems.com>
+
+ * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
+
+2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
+
+ * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
+
2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
* sim-options.c (standard_options): Fix the names of H8
diff --git a/sim/common/Makefile.in b/sim/common/Makefile.in
index d021566ea7c..915598c9c43 100644
--- a/sim/common/Makefile.in
+++ b/sim/common/Makefile.in
@@ -105,7 +105,6 @@ TAGS: force
clean:
rm -f *.[oa] *~ core
- rm -f $(ALL)
distclean mostlyclean maintainer-clean realclean: clean
rm -f TAGS
diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c
index 586c25e4fa7..65c28d733b1 100644
--- a/sim/common/sim-core.c
+++ b/sim/common/sim-core.c
@@ -801,6 +801,25 @@ sim_core_xor_write_buffer (SIM_DESC sd,
}
#endif
+#if EXTERN_SIM_CORE_P
+void *
+sim_core_trans_addr (SIM_DESC sd,
+ sim_cpu *cpu,
+ unsigned map,
+ address_word addr)
+{
+ sim_core_common *core = (cpu == NULL ? &STATE_CORE (sd)->common : &CPU_CORE (cpu)->common);
+ sim_core_mapping *mapping =
+ sim_core_find_mapping (core, map,
+ addr, /*nr-bytes*/1,
+ write_transfer,
+ 0 /*dont-abort*/, NULL, NULL_CIA);
+ if (mapping == NULL)
+ return NULL;
+ return sim_core_translate(mapping, addr);
+}
+#endif
+
/* define the read/write 1/2/4/8/16/word functions */