gem5  v22.1.0.0
Public Member Functions | Private Attributes | List of all members
Gem5SystemC::MemoryManager Class Reference

#include <sc_mm.hh>

Inheritance diagram for Gem5SystemC::MemoryManager:

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

◆ ~MemoryManager()

Gem5SystemC::MemoryManager::~MemoryManager ( )

Definition at line 40 of file

References freePayloads, and numberOfFrees.

Member Function Documentation

◆ allocate()

gp * Gem5SystemC::MemoryManager::allocate ( )

Definition at line 49 of file

References freePayloads, and numberOfAllocations.

◆ free()

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

Implements tlm::tlm_mm_interface.

Definition at line 62 of file

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

Member Data Documentation

◆ freePayloads

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

Definition at line 56 of file sc_mm.hh.

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

◆ numberOfAllocations

unsigned int Gem5SystemC::MemoryManager::numberOfAllocations

Definition at line 54 of file sc_mm.hh.

Referenced by allocate().

◆ numberOfFrees

unsigned int Gem5SystemC::MemoryManager::numberOfFrees

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 Wed Dec 21 2022 10:25:06 for gem5 by doxygen 1.9.1