mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
This commit is contained in:
@ -532,7 +532,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;
|
||||
DI val;
|
||||
|
Reference in New Issue
Block a user