]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/bpf/bpf.c
sim: common: change sim_{fetch,store}_register helpers to use void* buffers
[thirdparty/binutils-gdb.git] / sim / bpf / bpf.c
index 9db61ff56a964a1daebb0b5e00dd494e1b050125..c3ba0e0b5b5ff91a4b3c8808498fbf505000ef4d 100644 (file)
@@ -45,7 +45,7 @@ IDESC *bpf_idesc_be;
 int
 bpfbf_fetch_register (SIM_CPU *current_cpu,
                       int rn,
-                      unsigned char *buf,
+                      void *buf,
                       int len)
 {
   if (rn == 11)
@@ -61,7 +61,7 @@ bpfbf_fetch_register (SIM_CPU *current_cpu,
 int
 bpfbf_store_register (SIM_CPU *current_cpu,
                       int rn,
-                      const unsigned char *buf,
+                      const void *buf,
                       int len)
 {
   if (rn == 11)