diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:40:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:40:27 +0000 |
commit | 6bf91687eb2ee78ad7cb60708d9f66288e345e16 (patch) | |
tree | 52567dc0569b152d578806896236920ae3bf74d1 /sim | |
parent | 15f3c2de23e579e8965294c24de2a0bb5971273b (diff) | |
download | gdb-6bf91687eb2ee78ad7cb60708d9f66288e345e16.zip gdb-6bf91687eb2ee78ad7cb60708d9f66288e345e16.tar.gz gdb-6bf91687eb2ee78ad7cb60708d9f66288e345e16.tar.bz2 |
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.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-core.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 64278e0..fef7e74 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,10 @@ 2010-03-30 Mike Frysinger <vapier@gentoo.org> + * sim-core.c (sim_core_read_buffer): Change raddr to address_word. + (sim_core_write_buffer): Likewise. + +2010-03-30 Mike Frysinger <vapier@gentoo.org> + * sim-trace.c (trace_option_handler): Move cpu_nr decl behind the SIM_HAVE_ADDR_RANGE define. diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index 92b8003..5476ead 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, |