]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/w65/interp.c
daily update
[thirdparty/binutils-gdb.git] / sim / w65 / interp.c
index 6416b253ada3e23f86c0be793ca415dd7a57ff34..a4b325a1cc7a9c483f307f56c701a0814c68c1fd 100644 (file)
@@ -33,8 +33,8 @@
 #endif
 #include <sys/param.h>
 #include "bfd.h"
-#include "callback.h"
-#include "remote-sim.h"
+#include "gdb/callback.h"
+#include "gdb/remote-sim.h"
 #include "../../newlib/libc/sys/w65/sys/syscall.h"
 
 #include "interp.h"
@@ -233,10 +233,11 @@ rinfo[] =
   0
 };
 
-void
-sim_store_register (rn, value)
+int
+sim_store_register (rn, value, length)
      int rn;
      unsigned char *value;
+     int length;
 {
   unsigned int val;
   int i;
@@ -247,12 +248,14 @@ sim_store_register (rn, value)
     }
 
   *(rinfo[rn].ptr) = val;
+  return -1;
 }
 
-void
-sim_fetch_register (rn, buf)
+int
+sim_fetch_register (rn, buf, length)
      int rn;
      unsigned char *buf;
+     int length;
 {
   unsigned int val = *(rinfo[rn].ptr);
   int i;
@@ -262,6 +265,7 @@ sim_fetch_register (rn, buf)
       *buf++ = val;
       val = val >> 8;
     }
+  return -1;
 }