[VTA][TSIM] Introduce Virtual Memory for TSIM Driver (#3686)
authorLiangfu Chen <liangfu.chen@harman.com>
Mon, 26 Aug 2019 16:36:23 +0000 (00:36 +0800)
committerThierry Moreau <moreau@uw.edu>
Mon, 26 Aug 2019 16:36:23 +0000 (09:36 -0700)
commit92b6ca7127ce4032a3b24f001d67cb798512a734
tree7f70f387c31de52bec87c66130833d75ef79430e
parent70f0a16938d2706ab2fe4aca2d2efb9363577100
[VTA][TSIM] Introduce Virtual Memory for TSIM Driver (#3686)

* initial virtual memory;

* initial integration;

* include the header file in cmake;

* implement allocation with virtual to logical address mapping;

* virtual memory for tsim_driver;

* implement the missing memory release function;

* readability improvement;

* readability improvement;

* address review comments;

* improved robustness in virtual memory allocation;

* remove VTA_TSIM_USE_VIRTUAL_MEMORY macro and use virtual memory for tsim by default;

* link tvm against vta library;

* merge with master

* build virtual memory system without linking tvm against vta;

* minor change;

* reuse VTA_PAGE_BYTES;

* using DRAM class from sim_driver as VirtualMemoryManager;

* satisfy linter;

* add comments in code;

* undo changes to Makefile

* undo changes to Makefile

* retrigger ci;

* retrigger ci;

* directly call into VirtualMemoryManager::Global()
cmake/modules/VTA.cmake
vta/src/dpi/module.cc
vta/src/sim/sim_driver.cc
vta/src/tsim/tsim_driver.cc
vta/src/vmem/virtual_memory.cc [new file with mode: 0644]
vta/src/vmem/virtual_memory.h [new file with mode: 0644]