forked from Imagelibrary/binutils-gdb
sim: common: change sim_{fetch,store}_register helpers to use void* buffers
When reading/writing arbitrary data to the system's memory, the unsigned char pointer type doesn't make that much sense. Switch it to void so we align a bit with standard C library read/write functions, and to avoid having to sprinkle casts everywhere.
This commit is contained in:
@@ -45,7 +45,7 @@ IDESC *bpf_idesc_be;
|
||||
int
|
||||
bpfbf_fetch_register (SIM_CPU *current_cpu,
|
||||
int rn,
|
||||
unsigned char *buf,
|
||||
void *buf,
|
||||
int len)
|
||||
{
|
||||
if (rn == 11)
|
||||
@@ -61,7 +61,7 @@ bpfbf_fetch_register (SIM_CPU *current_cpu,
|
||||
int
|
||||
bpfbf_store_register (SIM_CPU *current_cpu,
|
||||
int rn,
|
||||
const unsigned char *buf,
|
||||
const void *buf,
|
||||
int len)
|
||||
{
|
||||
if (rn == 11)
|
||||
|
||||
Reference in New Issue
Block a user