unicorn_common: Fix unicorn memory functions failing

These functions, over the course of backporting qemu's newer changes,
were altered to return non-zero in the case of success, so we need to
update the cpu read/write functions as necessary.
This commit is contained in:
Lioncash 2018-09-03 10:40:10 -04:00
parent a97d643944
commit 73c7c9aadc
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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);