sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
This commit is contained in:
parent
ed60d3edd5
commit
5bab16fdf1
38 changed files with 48 additions and 46 deletions
|
@ -403,7 +403,7 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
|
|||
}
|
||||
|
||||
int
|
||||
sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
|
||||
sim_store_register (SIM_DESC sd, int regno, const unsigned char *buf, int length)
|
||||
{
|
||||
size_t size;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue