aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-10-26 23:01:21 +0545
committerMike Frysinger <vapier@gentoo.org>2022-10-31 21:24:39 +0545
commit5bab16fdf1775c8abd16376458c5843fbe1d4314 (patch)
tree0b41c08b25c87525ba53362fca775a7d6acb6599 /sim/ppc
parented60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 (diff)
downloadfsf-binutils-gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.zip
fsf-binutils-gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.gz
fsf-binutils-gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.bz2
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/gdb-sim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/ppc/gdb-sim.c b/sim/ppc/gdb-sim.c
index c6ae10e..8cf3638 100644
--- a/sim/ppc/gdb-sim.c
+++ b/sim/ppc/gdb-sim.c
@@ -1284,7 +1284,8 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
int
-sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
+sim_store_register (SIM_DESC sd, int regno, const unsigned char *buf,
+ int length)
{
const char *regname = regnum2name (regno);