From 5bab16fdf1775c8abd16376458c5843fbe1d4314 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Oct 2022 23:01:21 +0545 Subject: sim: reg: constify store helper These functions only read from memory, so mark the pointer as const. --- sim/rl78/gdb-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/rl78') diff --git a/sim/rl78/gdb-if.c b/sim/rl78/gdb-if.c index 98bb0a4..ef6c75d 100644 --- a/sim/rl78/gdb-if.c +++ b/sim/rl78/gdb-if.c @@ -356,7 +356,7 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length) LENGTH must match the sim's internal notion of the register size. */ 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) { size_t size; SI val; -- cgit v1.1