]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/arm/wrapper.c
sim: switch sim_{read,write} APIs to 64-bit all the time [PR sim/7504]
[thirdparty/binutils-gdb.git] / sim / arm / wrapper.c
index 2c5253fc74660b5dff5b6e91fdeb0d95e68377d2..7b1153298f1dc23718ca88e720b1f286296a022a 100644 (file)
@@ -150,13 +150,13 @@ ARMul_ConsolePrint (ARMul_State * state,
     }
 }
 
-int
+uint64_t
 sim_write (SIM_DESC sd ATTRIBUTE_UNUSED,
-          SIM_ADDR addr,
+          uint64_t addr,
           const void * buffer,
-          int size)
+          uint64_t size)
 {
-  int i;
+  uint64_t i;
   const unsigned char * data = buffer;
 
   init ();
@@ -167,13 +167,13 @@ sim_write (SIM_DESC sd ATTRIBUTE_UNUSED,
   return size;
 }
 
-int
+uint64_t
 sim_read (SIM_DESC sd ATTRIBUTE_UNUSED,
-         SIM_ADDR addr,
+         uint64_t addr,
          void * buffer,
-         int size)
+         uint64_t size)
 {
-  int i;
+  uint64_t i;
   unsigned char * data = buffer;
 
   init ();