mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 01:31:09 +00:00
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:
parent
a97d643944
commit
73c7c9aadc
|
@ -10,13 +10,13 @@
|
||||||
static inline bool cpu_physical_mem_read(AddressSpace *as, hwaddr addr,
|
static inline bool cpu_physical_mem_read(AddressSpace *as, hwaddr addr,
|
||||||
uint8_t *buf, int len)
|
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,
|
static inline bool cpu_physical_mem_write(AddressSpace *as, hwaddr addr,
|
||||||
const uint8_t *buf, int len)
|
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);
|
void tb_cleanup(struct uc_struct *uc);
|
||||||
|
|
Loading…
Reference in a new issue