Add const to uc_reg_write and derivitives
This commit is contained in:
4
qemu/target-arm/unicorn.h
Normal file → Executable file
4
qemu/target-arm/unicorn.h
Normal file → Executable file
@@ -6,9 +6,9 @@
|
||||
|
||||
// functions to read & write registers
|
||||
int arm_reg_read(uch handle, unsigned int regid, void *value);
|
||||
int arm_reg_write(uch handle, unsigned int regid, void *value);
|
||||
int arm_reg_write(uch handle, unsigned int regid, const void *value);
|
||||
int arm64_reg_read(uch handle, unsigned int regid, void *value);
|
||||
int arm64_reg_write(uch handle, unsigned int regid, void *value);
|
||||
int arm64_reg_write(uch handle, unsigned int regid, const void *value);
|
||||
|
||||
void arm_reg_reset(uch handle);
|
||||
void arm64_reg_reset(uch handle);
|
||||
|
||||
2
qemu/target-arm/unicorn_aarch64.c
Normal file → Executable file
2
qemu/target-arm/unicorn_aarch64.c
Normal file → Executable file
@@ -68,7 +68,7 @@ int arm64_reg_read(uch handle, unsigned int regid, void *value)
|
||||
#define WRITE_BYTE_H(x, b) (x = (x & ~0xff00) | (b & 0xff))
|
||||
#define WRITE_BYTE_L(x, b) (x = (x & ~0xff) | (b & 0xff))
|
||||
|
||||
int arm64_reg_write(uch handle, unsigned int regid, void *value)
|
||||
int arm64_reg_write(uch handle, unsigned int regid, const void *value)
|
||||
{
|
||||
CPUState *mycpu;
|
||||
struct uc_struct *uc = (struct uc_struct *) handle;
|
||||
|
||||
2
qemu/target-arm/unicorn_arm.c
Normal file → Executable file
2
qemu/target-arm/unicorn_arm.c
Normal file → Executable file
@@ -78,7 +78,7 @@ int arm_reg_read(uch handle, unsigned int regid, void *value)
|
||||
#define WRITE_BYTE_H(x, b) (x = (x & ~0xff00) | (b & 0xff))
|
||||
#define WRITE_BYTE_L(x, b) (x = (x & ~0xff) | (b & 0xff))
|
||||
|
||||
int arm_reg_write(uch handle, unsigned int regid, void *value)
|
||||
int arm_reg_write(uch handle, unsigned int regid, const void *value)
|
||||
{
|
||||
CPUState *mycpu;
|
||||
struct uc_struct *uc = (struct uc_struct *) handle;
|
||||
|
||||
Reference in New Issue
Block a user