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-mips/unicorn.c Normal file → Executable file
View File

@@ -57,7 +57,7 @@ int mips_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 mips_reg_write(uch handle, unsigned int regid, void *value)
int mips_reg_write(uch handle, unsigned int regid, const void *value)
{
struct uc_struct *uc = (struct uc_struct *) handle;
CPUState *mycpu = first_cpu;