From 6bf91687eb2ee78ad7cb60708d9f66288e345e16 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 30 Mar 2010 20:40:27 +0000 Subject: [PATCH] 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. --- sim/common/ChangeLog | 5 +++++ 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 + * 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 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, -- 2.7.4