diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-10-26 23:01:21 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-10-31 21:24:39 +0545 |
commit | 5bab16fdf1775c8abd16376458c5843fbe1d4314 (patch) | |
tree | 0b41c08b25c87525ba53362fca775a7d6acb6599 /sim/bfin | |
parent | ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 (diff) | |
download | binutils-5bab16fdf1775c8abd16376458c5843fbe1d4314.zip binutils-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.gz binutils-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.bz2 |
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/bfin')
-rw-r--r-- | sim/bfin/machs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/bfin/machs.c b/sim/bfin/machs.c index f322b18..035eb31 100644 --- a/sim/bfin/machs.c +++ b/sim/bfin/machs.c @@ -1881,7 +1881,7 @@ bfin_reg_fetch (SIM_CPU *cpu, int rn, unsigned char *buf, int len) } static int -bfin_reg_store (SIM_CPU *cpu, int rn, unsigned char *buf, int len) +bfin_reg_store (SIM_CPU *cpu, int rn, const unsigned char *buf, int len) { bu32 value, *reg; |