forked from Imagelibrary/binutils-gdb
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user