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/bpf/bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/bpf/bpf.c') diff --git a/sim/bpf/bpf.c b/sim/bpf/bpf.c index 4a55acd..9db61ff 100644 --- a/sim/bpf/bpf.c +++ b/sim/bpf/bpf.c @@ -61,7 +61,7 @@ bpfbf_fetch_register (SIM_CPU *current_cpu, int bpfbf_store_register (SIM_CPU *current_cpu, int rn, - unsigned char *buf, + const unsigned char *buf, int len) { if (rn == 11) -- cgit v1.1