Add const to uc_reg_write and derivitives
This commit is contained in:
2
qemu/target-i386/unicorn.c
Normal file → Executable file
2
qemu/target-i386/unicorn.c
Normal file → Executable file
@@ -536,7 +536,7 @@ int x86_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 x86_reg_write(uch handle, unsigned int regid, void *value)
|
||||
int x86_reg_write(uch handle, unsigned int regid, const void *value)
|
||||
{
|
||||
CPUState *mycpu;
|
||||
struct uc_struct *uc = (struct uc_struct *) handle;
|
||||
|
||||
2
qemu/target-i386/unicorn.h
Normal file → Executable file
2
qemu/target-i386/unicorn.h
Normal file → Executable file
@@ -6,7 +6,7 @@
|
||||
|
||||
// functions to read & write registers
|
||||
int x86_reg_read(uch handle, unsigned int regid, void *value);
|
||||
int x86_reg_write(uch handle, unsigned int regid, void *value);
|
||||
int x86_reg_write(uch handle, unsigned int regid, const void *value);
|
||||
|
||||
void x86_reg_reset(uch handle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user