aboutsummaryrefslogtreecommitdiff
path: root/sim/iq2000
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/iq2000
parented60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 (diff)
downloadbinutils-5bab16fdf1775c8abd16376458c5843fbe1d4314.zip
binutils-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.gz
binutils-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.bz2
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/iq2000')
-rw-r--r--sim/iq2000/iq2000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/iq2000/iq2000.c b/sim/iq2000/iq2000.c
index 9b1f4bd..d758867 100644
--- a/sim/iq2000/iq2000.c
+++ b/sim/iq2000/iq2000.c
@@ -227,7 +227,7 @@ iq2000bf_fetch_register (SIM_CPU *cpu, int nr, unsigned char *buf, int len)
}
int
-iq2000bf_store_register (SIM_CPU *cpu, int nr, unsigned char *buf, int len)
+iq2000bf_store_register (SIM_CPU *cpu, int nr, const unsigned char *buf, int len)
{
if (nr >= GPR0_REGNUM
&& nr < (GPR0_REGNUM + NR_GPR)