mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user