mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
fixed compile error
This commit is contained in:
parent
6d480b3da1
commit
52233fe13a
2 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,8 @@ MemoryUnit::MemoryUnit(uint64_t pageSize)
|
|||
, TLB_HIT(0)
|
||||
, TLB_MISS(0)
|
||||
, TLB_EVICT(0)
|
||||
, PTW(0) {};
|
||||
, PTW(0)
|
||||
, satp_(NULL) {};
|
||||
#else
|
||||
{
|
||||
if (pageSize != 0)
|
||||
|
|
|
@ -186,8 +186,7 @@ public:
|
|||
};
|
||||
|
||||
#ifdef VM_ENABLE
|
||||
MemoryUnit(uint64_t pageSize = MEM_PAGE_SIZE) :satp_(NULL)
|
||||
{};
|
||||
MemoryUnit(uint64_t pageSize = MEM_PAGE_SIZE);
|
||||
~MemoryUnit(){
|
||||
if ( this->satp_ != NULL)
|
||||
delete this->satp_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue