mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
This commit is contained in:
@ -203,7 +203,8 @@ int sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length);
|
||||
Return a LENGTH of 0 to indicate the register was not updated
|
||||
but no error has occurred. */
|
||||
|
||||
int sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length);
|
||||
int sim_store_register (SIM_DESC sd, int regno, const unsigned char *buf,
|
||||
int length);
|
||||
|
||||
|
||||
/* Print whatever statistics the simulator has collected.
|
||||
|
Reference in New Issue
Block a user