From: Mike Frysinger Date: Tue, 30 Mar 2010 20:40:27 +0000 (+0000) Subject: sim: change raddr to address_word X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bf91687eb2ee78ad7cb60708d9f66288e345e16;p=binutils-gdb.git sim: change raddr to address_word The sim read/write buffer functions deal with address_word's, not unsigned_words's, so make sure the local raddr variable matches accordingly. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 64278e0cf61..fef7e74d10d 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2010-03-30 Mike Frysinger + + * sim-core.c (sim_core_read_buffer): Change raddr to address_word. + (sim_core_write_buffer): Likewise. + 2010-03-30 Mike Frysinger * sim-trace.c (trace_option_handler): Move cpu_nr decl behind diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index 92b80037a0f..5476ead71ff 100644 --- a/sim/common/sim-core.c +++ b/sim/common/sim-core.c @@ -516,7 +516,7 @@ sim_core_read_buffer (SIM_DESC sd, unsigned count = 0; while (count < len) { - unsigned_word raddr = addr + count; + address_word raddr = addr + count; sim_core_mapping *mapping = sim_core_find_mapping (core, map, raddr, /*nr-bytes*/1, @@ -582,7 +582,7 @@ sim_core_write_buffer (SIM_DESC sd, unsigned count = 0; while (count < len) { - unsigned_word raddr = addr + count; + address_word raddr = addr + count; sim_core_mapping *mapping = sim_core_find_mapping (core, map, raddr, /*nr-bytes*/1,