Add const to uc_reg_write and derivitives

This commit is contained in:
Chris Eagle
2015-08-24 09:42:50 -07:00
parent f221195bf6
commit 5c3b681945
15 changed files with 19 additions and 17 deletions

2
qemu/target-i386/unicorn.c Normal file → Executable file
View 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;