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/rx/gdb-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/rx') diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index 7af37b9..20bb9ef 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -532,7 +532,7 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length) } 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; DI val; -- cgit v1.1