]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/moxie/interp.c
sim: common: change sim_{fetch,store}_register helpers to use void* buffers
[thirdparty/binutils-gdb.git] / sim / moxie / interp.c
index 325bd14e313f67d8df4a4617ce95d835130b97cd..fec79aa28621f5c5cb5ca6dcacce286e2558b0e6 100644 (file)
@@ -1132,7 +1132,7 @@ sim_engine_run (SIM_DESC sd,
 }
 
 static int
-moxie_reg_store (SIM_CPU *scpu, int rn, const unsigned char *memory, int length)
+moxie_reg_store (SIM_CPU *scpu, int rn, const void *memory, int length)
 {
   if (rn < NUM_MOXIE_REGS && rn >= 0)
     {
@@ -1152,7 +1152,7 @@ moxie_reg_store (SIM_CPU *scpu, int rn, const unsigned char *memory, int length)
 }
 
 static int
-moxie_reg_fetch (SIM_CPU *scpu, int rn, unsigned char *memory, int length)
+moxie_reg_fetch (SIM_CPU *scpu, int rn, void *memory, int length)
 {
   if (rn < NUM_MOXIE_REGS && rn >= 0)
     {