diff --git a/qemu/unicorn_common.h b/qemu/unicorn_common.h index 71adf268..9e58e2a1 100644 --- a/qemu/unicorn_common.h +++ b/qemu/unicorn_common.h @@ -10,13 +10,13 @@ static inline bool cpu_physical_mem_read(AddressSpace *as, hwaddr addr, uint8_t *buf, int len) { - return !cpu_physical_memory_rw(as, addr, (void *)buf, len, 0); + return cpu_physical_memory_rw(as, addr, (void *)buf, len, 0); } static inline bool cpu_physical_mem_write(AddressSpace *as, hwaddr addr, const uint8_t *buf, int len) { - return !cpu_physical_memory_rw(as, addr, (void *)buf, len, 1); + return cpu_physical_memory_rw(as, addr, (void *)buf, len, 1); } void tb_cleanup(struct uc_struct *uc);