Skip to content

Commit

Permalink
feat(difftest): Export goldmem read/update as C API for DMA cosim (#568)
Browse files Browse the repository at this point in the history
To cosim with DMA device, we need to update goldmem when a write request
was initiated by the device.

Signed-off-by: Jiuyue Ma <[email protected]>
  • Loading branch information
forever043 authored Feb 12, 2025
1 parent b537f52 commit 00d1bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/csrc/difftest/goldenmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ extern uint8_t *pmem;
void init_goldenmem();
void goldenmem_finish();

void update_goldenmem(uint64_t addr, void *data, uint64_t mask, int len);
void read_goldenmem(uint64_t addr, void *data, uint64_t len);
extern "C" void update_goldenmem(uint64_t addr, void *data, uint64_t mask, int len);
extern "C" void read_goldenmem(uint64_t addr, void *data, uint64_t len);

/* convert the guest physical address in the guest program to host virtual address in NEMU */
void *guest_to_host(uint64_t addr);
Expand Down

0 comments on commit 00d1bca

Please sign in to comment.