sim: change raddr to address_word
authorMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 20:40:27 +0000 (20:40 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 20:40:27 +0000 (20:40 +0000)
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
sim/common/sim-core.c

index 64278e0cf6129d38de799fca398274d782e72477..fef7e74d10dbc9eee6f6c7da7ea2f6c7b35390e8 100644 (file)
@@ -1,3 +1,8 @@
+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
index 92b80037a0fc7608ef5c6464ef83d1487cd5f5b9..5476ead71ffc0204799df8018356ecd090e563d9 100644 (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,