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/cris/cris-tmpl.c | |
parent | sim: constify various integer readers (diff) | |
download | binutils-gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.gz binutils-gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.bz2 binutils-gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.zip |
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/cris/cris-tmpl.c')
-rw-r--r-- | sim/cris/cris-tmpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/cris/cris-tmpl.c b/sim/cris/cris-tmpl.c index 9f0c06e755e..a21a79aaa7c 100644 --- a/sim/cris/cris-tmpl.c +++ b/sim/cris/cris-tmpl.c @@ -90,7 +90,7 @@ MY (f_fetch_register) (SIM_CPU *current_cpu, int rn, int MY (f_store_register) (SIM_CPU *current_cpu, int rn, - unsigned char *buf, int len ATTRIBUTE_UNUSED) + const unsigned char *buf, int len ATTRIBUTE_UNUSED) { XCONCAT3(crisv,BASENUM,f_h_gr_set) (current_cpu, rn, GETTSI (buf)); return -1; |