gem5
|
#include <simple_pool_manager.hh>
Public Member Functions | |
SimplePoolManager (uint32_t minAlloc, uint32_t poolSize) | |
uint32_t | minAllocatedElements (uint32_t size) |
std::string | printRegion () |
bool | canAllocate (uint32_t numRegions, uint32_t size) |
uint32_t | allocateRegion (const uint32_t size, uint32_t *reservedPoolSize) |
void | freeRegion (uint32_t firstIdx, uint32_t lastIdx) |
uint32_t | regionSize (std::pair< uint32_t, uint32_t > ®ion) |
Public Member Functions inherited from PoolManager | |
PoolManager (uint32_t minAlloc, uint32_t poolSize) | |
uint32_t | minAllocation () |
uint32_t | poolSize () |
Private Attributes | |
uint32_t | _regionSize |
uint8_t | _nxtFreeIdx |
uint32_t | _reservedGroups |
Definition at line 46 of file simple_pool_manager.hh.
|
inline |
Definition at line 49 of file simple_pool_manager.hh.
|
virtual |
Implements PoolManager.
Definition at line 85 of file simple_pool_manager.cc.
References _nxtFreeIdx, _regionSize, _reservedGroups, minAllocatedElements(), and PoolManager::poolSize().
|
virtual |
Implements PoolManager.
Definition at line 67 of file simple_pool_manager.cc.
References _reservedGroups, minAllocatedElements(), and PoolManager::poolSize().
|
virtual |
Implements PoolManager.
Definition at line 75 of file simple_pool_manager.cc.
References _nxtFreeIdx, and _reservedGroups.
uint32_t SimplePoolManager::minAllocatedElements | ( | uint32_t | size | ) |
Definition at line 43 of file simple_pool_manager.cc.
References fatal_if(), PoolManager::minAllocation(), PoolManager::poolSize(), and X86ISA::size().
Referenced by allocateRegion(), and canAllocate().
|
virtual |
Implements PoolManager.
Definition at line 53 of file simple_pool_manager.cc.
References _regionSize, and _reservedGroups.
|
virtual |
Implements PoolManager.
Definition at line 100 of file simple_pool_manager.cc.
References PoolManager::poolSize().
|
private |
Definition at line 67 of file simple_pool_manager.hh.
Referenced by allocateRegion(), and freeRegion().
|
private |
Definition at line 65 of file simple_pool_manager.hh.
Referenced by allocateRegion(), and printRegion().
|
private |
Definition at line 69 of file simple_pool_manager.hh.
Referenced by allocateRegion(), canAllocate(), freeRegion(), and printRegion().