gem5 v24.0.0.0
Loading...
Searching...
No Matches
Gem5SystemC::MemoryManager Class Reference

#include <sc_mm.hh>

Inheritance diagram for Gem5SystemC::MemoryManager:
tlm::tlm_mm_interface

Public Member Functions

 MemoryManager ()
 
virtual ~MemoryManager ()
 
virtual gpallocate ()
 
virtual void free (gp *payload)
 
- Public Member Functions inherited from tlm::tlm_mm_interface
virtual ~tlm_mm_interface ()
 

Private Attributes

unsigned int numberOfAllocations
 
unsigned int numberOfFrees
 
std::vector< gp * > freePayloads
 

Detailed Description

Definition at line 45 of file sc_mm.hh.

Constructor & Destructor Documentation

◆ MemoryManager()

Gem5SystemC::MemoryManager::MemoryManager ( )

Definition at line 38 of file sc_mm.cc.

◆ ~MemoryManager()

Gem5SystemC::MemoryManager::~MemoryManager ( )
virtual

Definition at line 40 of file sc_mm.cc.

References freePayloads, and numberOfFrees.

Member Function Documentation

◆ allocate()

gp * Gem5SystemC::MemoryManager::allocate ( )
virtual

Definition at line 49 of file sc_mm.cc.

References freePayloads, and numberOfAllocations.

◆ free()

void Gem5SystemC::MemoryManager::free ( gp * payload)
virtual

Implements tlm::tlm_mm_interface.

Definition at line 62 of file sc_mm.cc.

References freePayloads, and tlm::tlm_generic_payload::reset().

Member Data Documentation

◆ freePayloads

std::vector<gp *> Gem5SystemC::MemoryManager::freePayloads
private

Definition at line 56 of file sc_mm.hh.

Referenced by allocate(), free(), and ~MemoryManager().

◆ numberOfAllocations

unsigned int Gem5SystemC::MemoryManager::numberOfAllocations
private

Definition at line 54 of file sc_mm.hh.

Referenced by allocate().

◆ numberOfFrees

unsigned int Gem5SystemC::MemoryManager::numberOfFrees
private

Definition at line 55 of file sc_mm.hh.

Referenced by ~MemoryManager().


The documentation for this class was generated from the following files:

Generated on Tue Jun 18 2024 16:24:55 for gem5 by doxygen 1.11.0