]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/sim-cpu.h
sim: reg: constify store helper
[thirdparty/binutils-gdb.git] / sim / common / sim-cpu.h
index 9e09a55bf813861f2e3d7b4359d81350df06291e..2ad5667e3ab28a04e66c4b117303363f3a269792 100644 (file)
@@ -31,7 +31,7 @@ typedef const char * (CPU_INSN_NAME_FN) (sim_cpu *, int);
 /* Types for register access functions.
    These routines implement the sim_{fetch,store}_register interface.  */
 typedef int (CPUREG_FETCH_FN) (sim_cpu *, int, unsigned char *, int);
-typedef int (CPUREG_STORE_FN) (sim_cpu *, int, unsigned char *, int);
+typedef int (CPUREG_STORE_FN) (sim_cpu *, int, const unsigned char *, int);
 
 /* Types for PC access functions.
    Some simulators require a functional interface to access the program