]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - include/sim/sim.h
sim: switch sim_{read,write} APIs to 64-bit all the time [PR sim/7504]
[thirdparty/binutils-gdb.git] / include / sim / sim.h
index 20a667cab7d35a4b56af420412891e30be7c8bf3..468a63bbc201441db7cc57037e535c401184f0f5 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef SIM_SIM_H
 #define SIM_SIM_H 1
 
+#include <stdint.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -163,14 +165,14 @@ SIM_RC sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
    at virtual address MEM and store in BUF.  Result is number of bytes
    read, or zero if error.  */
 
-int sim_read (SIM_DESC sd, SIM_ADDR mem, void *buf, int length);
+uint64_t sim_read (SIM_DESC sd, uint64_t mem, void *buf, uint64_t length);
 
 
 /* Store LENGTH bytes from BUF into the simulated program's
    memory. Store bytes starting at virtual address MEM. Result is
    number of bytes write, or zero if error.  */
 
-int sim_write (SIM_DESC sd, SIM_ADDR mem, const void *buf, int length);
+uint64_t sim_write (SIM_DESC sd, uint64_t mem, const void *buf, uint64_t length);
 
 
 /* Fetch register REGNO storing its raw (target endian) value in the