mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 09:18:32 +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
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue