sim: common: change sim_{fetch,store}_register helpers to use void* buffers
authorMike Frysinger <vapier@gentoo.org>
Mon, 31 Oct 2022 15:58:10 +0000 (21:43 +0545)
committerMike Frysinger <vapier@gentoo.org>
Wed, 2 Nov 2022 14:46:10 +0000 (20:31 +0545)
commitee1cffd3883c1d846ad58c1fb86559bb2f930361
tree650a83e14dc8dcb5e061093643102eca8163b461
parent26f228db710f54b54aea4d9a05214add0cf9f541
sim: common: change sim_{fetch,store}_register helpers to use void* buffers

When reading/writing arbitrary data to the system's memory, the unsigned
char pointer type doesn't make that much sense.  Switch it to void so we
align a bit with standard C library read/write functions, and to avoid
having to sprinkle casts everywhere.
37 files changed:
include/sim/sim.h
sim/aarch64/interp.c
sim/arm/wrapper.c
sim/avr/interp.c
sim/bfin/machs.c
sim/bpf/bpf.c
sim/common/sim-cpu.h
sim/common/sim-reg.c
sim/cr16/interp.c
sim/cris/cris-tmpl.c
sim/d10v/interp.c
sim/erc32/interf.c
sim/frv/frv.c
sim/ft32/interp.c
sim/h8300/compile.c
sim/iq2000/iq2000.c
sim/lm32/lm32.c
sim/m32c/gdb-if.c
sim/m32r/m32r.c
sim/m32r/m32r2.c
sim/m32r/m32rx.c
sim/m68hc11/interp.c
sim/mcore/interp.c
sim/microblaze/interp.c
sim/mips/interp.c
sim/mn10300/interp.c
sim/moxie/interp.c
sim/msp430/msp430-sim.c
sim/or1k/or1k-sim.h
sim/or1k/or1k.c
sim/ppc/gdb-sim.c
sim/pru/interp.c
sim/riscv/sim-main.c
sim/rl78/gdb-if.c
sim/rx/gdb-if.c
sim/sh/interp.c
sim/v850/interp.c