aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/wrapper.c
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/arm/wrapper.c
parentead2618501e8ba696bf29de635a9a5f6a1ba1b0e (diff)
downloadfsf-binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.zip
fsf-binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.tar.gz
fsf-binutils-gdb-ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2.tar.bz2
sim: constify various integer readers
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/arm/wrapper.c')
-rw-r--r--sim/arm/wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c
index 38a1f27..72a6524 100644
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -397,7 +397,7 @@ sim_create_inferior (SIM_DESC sd ATTRIBUTE_UNUSED,
}
static int
-frommem (struct ARMul_State *state, unsigned char *memory)
+frommem (struct ARMul_State *state, const unsigned char *memory)
{
if (state->bigendSig == HIGH)
return (memory[0] << 24) | (memory[1] << 16)