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/moxie/interp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/moxie') diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c index d5d14bfe49d..325bd14e313 100644 --- a/sim/moxie/interp.c +++ b/sim/moxie/interp.c @@ -1132,7 +1132,7 @@ sim_engine_run (SIM_DESC sd, } static int -moxie_reg_store (SIM_CPU *scpu, int rn, unsigned char *memory, int length) +moxie_reg_store (SIM_CPU *scpu, int rn, const unsigned char *memory, int length) { if (rn < NUM_MOXIE_REGS && rn >= 0) { -- cgit v1.2.1