summaryrefslogtreecommitdiff
path: root/sim/ft32
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-10-26 22:42:10 +0545
committerMike Frysinger <vapier@gentoo.org>2022-10-31 21:24:39 +0545
commited60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 (patch)
tree9fec7827dac0d17642f854d02c497a3b45692dfb /sim/ft32
parentsim: cgen: constify GETT helpers (diff)
downloadbinutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.tar.gz
binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.tar.bz2
binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.zip
sim: constify various integer readers
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/ft32')
-rw-r--r--sim/ft32/interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c
index 8e828e68eff..70212f45cca 100644
--- a/sim/ft32/interp.c
+++ b/sim/ft32/interp.c
@@ -56,7 +56,7 @@
#define RAM_BIAS 0x800000 /* Bias added to RAM addresses. */
static unsigned long
-ft32_extract_unsigned_integer (unsigned char *addr, int len)
+ft32_extract_unsigned_integer (const unsigned char *addr, int len)
{
unsigned long retval;
unsigned char *p;