diff options
author | Nick Clifton <nickc@redhat.com> | 2003-12-19 11:44:01 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-12-19 11:44:01 +0000 |
commit | 6edf0760c5c65c9f0582c5d8036bfa058f2cd6c2 (patch) | |
tree | 475a1c15199a9a645d40a11faddc392816d6e35c /sim/common | |
parent | c4bf77942dea9cad22426964bf32c46cbc443705 (diff) | |
download | gdb-6edf0760c5c65c9f0582c5d8036bfa058f2cd6c2.zip gdb-6edf0760c5c65c9f0582c5d8036bfa058f2cd6c2.tar.gz gdb-6edf0760c5c65c9f0582c5d8036bfa058f2cd6c2.tar.bz2 |
Add support for m32r-linux target, including a RELA ABI and PIC.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/sim-core.c | 19 |
2 files changed, 23 insertions, 0 deletions
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 <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/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 */ |