From 6edf0760c5c65c9f0582c5d8036bfa058f2cd6c2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 19 Dec 2003 11:44:01 +0000 Subject: Add support for m32r-linux target, including a RELA ABI and PIC. --- sim/common/ChangeLog | 4 ++++ sim/common/sim-core.c | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) (limited to 'sim/common') diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index f95071f..c2d7584 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2003-12-19 Kazuhiro Inaoka + + * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run. + 2003-11-22 Kazu Hirata * sim-options.c (standard_options): Fix the names of H8 diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index 586c25e..65c28d7 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 */ -- cgit v1.1