aboutsummaryrefslogtreecommitdiff
path: root/sim/avr
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/avr
parented60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 (diff)
downloadgdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.zip
gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.gz
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/avr')
-rw-r--r--sim/avr/interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/avr/interp.c b/sim/avr/interp.c
index 1b147c4..0aa7132 100644
--- a/sim/avr/interp.c
+++ b/sim/avr/interp.c
@@ -1600,7 +1600,7 @@ sim_read (SIM_DESC sd, SIM_ADDR addr, void *buffer, int size)
}
static int
-avr_reg_store (SIM_CPU *cpu, int rn, unsigned char *memory, int length)
+avr_reg_store (SIM_CPU *cpu, int rn, const unsigned char *memory, int length)
{
if (rn < 32 && length == 1)
{