Skip to content

Commit

Permalink
Remove the legacy RAMHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense committed Oct 17, 2023
1 parent 4725b62 commit 019607e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
12 changes: 0 additions & 12 deletions src/test/csrc/common/ram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,6 @@ extern "C" uint64_t difftest_ram_read(uint64_t rIdx) {
return rdata;
}

extern "C" uint64_t ram_read_helper(uint8_t en, uint64_t rIdx) {
if (!en)
return 0;
return difftest_ram_read(rIdx);
}

extern "C" void difftest_ram_write(uint64_t wIdx, uint64_t wdata, uint64_t wmask) {
if (simMemory) {
if (!simMemory->in_range_u64(wIdx)) {
Expand All @@ -316,12 +310,6 @@ extern "C" void difftest_ram_write(uint64_t wIdx, uint64_t wdata, uint64_t wmask
}
}

extern "C" void ram_write_helper(uint64_t wIdx, uint64_t wdata, uint64_t wmask, uint8_t wen) {
if (wen) {
difftest_ram_write(wIdx, wdata, wmask);
}
}

uint64_t pmem_read(uint64_t raddr) {
if (raddr % sizeof(uint64_t)) {
printf("Warning: pmem_read only supports 64-bit aligned memory access\n");
Expand Down
48 changes: 0 additions & 48 deletions src/test/vsrc/common/ram.v

This file was deleted.

0 comments on commit 019607e

Please sign in to comment.