ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
emu_memory_access.c
Go to the documentation of this file.
1
15
16#include "emu_memory_access.h"
17
18uc_err emu_mem_read(uc_engine* uc, uint64_t address, void* bytes, size_t count)
19{
20 if ((uc == nullptr) || (bytes == nullptr) || (count == 0U)) {
21 return UC_ERR_ARG;
22 }
23 return uc_mem_read(uc, address, bytes, count);
24}
25
26uc_err emu_mem_write(uc_engine* uc, uint64_t address, const void* bytes, size_t count)
27{
28 if ((uc == nullptr) || (bytes == nullptr) || (count == 0U)) {
29 return UC_ERR_ARG;
30 }
31 return uc_mem_write(uc, address, bytes, count);
32}
uc_err emu_mem_read(uc_engine *uc, uint64_t address, void *bytes, size_t count)
Read guest memory through the central access seam.
uc_err emu_mem_write(uc_engine *uc, uint64_t address, const void *bytes, size_t count)
Write guest memory through the central access seam.
Central first-party Unicorn memory access seam.