fixed compile error

This commit is contained in:
Jaewon Lee 2024-06-30 00:54:22 -04:00
parent 3caeeeea13
commit ccbb2243cc
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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_;