forked from Imagelibrary/binutils-gdb
sim: reg: constify store helper
These functions only read from memory, so mark the pointer as const.
This commit is contained in:
@@ -257,7 +257,7 @@ aarch64_reg_get (SIM_CPU *cpu, int regno, unsigned char *buf, int length)
|
||||
}
|
||||
|
||||
static int
|
||||
aarch64_reg_set (SIM_CPU *cpu, int regno, unsigned char *buf, int length)
|
||||
aarch64_reg_set (SIM_CPU *cpu, int regno, const unsigned char *buf, int length)
|
||||
{
|
||||
size_t size;
|
||||
bfd_vma val;
|
||||
|
||||
Reference in New Issue
Block a user