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/erc32 | |
parent | ed60d3edd51f6c33fb0f3f09400094a1b1c2ceb2 (diff) | |
download | gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.zip gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.gz gdb-5bab16fdf1775c8abd16376458c5843fbe1d4314.tar.bz2 |
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
Diffstat (limited to 'sim/erc32')
-rw-r--r-- | sim/erc32/interf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index fc4336c..9e0c5a2 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -310,7 +310,7 @@ sim_create_inferior(SIM_DESC sd, bfd *abfd, char * const *argv, } int -sim_store_register(SIM_DESC sd, int regno, unsigned char *value, int length) +sim_store_register(SIM_DESC sd, int regno, const unsigned char *value, int length) { int regval; |