This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: change raddr to address_word
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 29 Mar 2010 18:39:49 -0400
- 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.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
2010-03-29 Mike Frysinger <vapier@gentoo.org>
* sim-core.c (sim_core_read_buffer): Change raddr to address_word.
(sim_core_write_buffer): Likewise.
sim/common/sim-core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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,
--
1.7.0.2