]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/erc32/interf.c
sim: switch sim_{read,write} APIs to 64-bit all the time [PR sim/7504]
[thirdparty/binutils-gdb.git] / sim / erc32 / interf.c
index e88e5ed3ab8ac5b638aaad052962e60023aed391..fdd3f0f6b402d5e1124fb0c2c72855e6eb19115b 100644 (file)
@@ -329,8 +329,8 @@ sim_fetch_register(SIM_DESC sd, int regno, void *buf, int length)
     return -1;
 }
 
-int
-sim_write (SIM_DESC sd, SIM_ADDR mem, const void *buffer, int length)
+uint64_t
+sim_write (SIM_DESC sd, uint64_t mem, const void *buffer, uint64_t length)
 {
     int i, len;
     const unsigned char *data = buffer;
@@ -341,8 +341,8 @@ sim_write (SIM_DESC sd, SIM_ADDR mem, const void *buffer, int length)
     return length;
 }
 
-int
-sim_read (SIM_DESC sd, SIM_ADDR mem, void *buffer, int length)
+uint64_t
+sim_read (SIM_DESC sd, uint64_t mem, void *buffer, uint64_t length)
 {
     int i, len;
     unsigned char *data = buffer;