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

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

2
qemu/target-m68k/unicorn.h Normal file → Executable file
View File

@@ -6,7 +6,7 @@
// functions to read & write registers
int m68k_reg_read(uch handle, unsigned int regid, void *value);
int m68k_reg_write(uch handle, unsigned int regid, void *value);
int m68k_reg_write(uch handle, unsigned int regid, const void *value);
void m68k_reg_reset(uch handle);