sim: constify various integer readers

These functions only read from memory, so mark the pointer as const.
This commit is contained in:
Mike Frysinger
2022-10-26 22:42:10 +05:45
parent ead2618501
commit ed60d3edd5
16 changed files with 24 additions and 24 deletions

View File

@ -690,7 +690,7 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
}
static uint32_t
cr16_extract_unsigned_integer (unsigned char *addr, int len)
cr16_extract_unsigned_integer (const unsigned char *addr, int len)
{
uint32_t retval;
unsigned char * p;