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.
This commit is contained in:
Mike Frysinger
2010-03-30 20:40:27 +00:00
parent 15f3c2de23
commit 6bf91687eb
2 changed files with 7 additions and 2 deletions

View File

@@ -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,