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

#include <sc_ext.hh>

Inheritance diagram for Gem5SystemC::ControlExtension:
tlm::tlm_extension< ControlExtension > tlm::tlm_extension_base

Public Member Functions

 ControlExtension ()
 
tlm_extension_base * clone () const override
 
void copy_from (const tlm_extension_base &ext) override
 
bool isPrivileged () const
 
void setPrivileged (bool p)
 
bool isSecure () const
 
void setSecure (bool s)
 
bool isInstruction () const
 
void setInstruction (bool i)
 
uint8_t getQos () const
 
void setQos (uint8_t q)
 
bool hasStreamId () const
 
std::optional< uint32_t > getStreamId () const
 
void setStreamId (std::optional< uint32_t > s)
 
bool hasSubstreamId () const
 
std::optional< uint32_t > getSubstreamId () const
 
void setSubstreamId (std::optional< uint32_t > s)
 
- Public Member Functions inherited from tlm::tlm_extension< ControlExtension >
virtual void copy_from (tlm_extension_base const &ext)=0
 
virtual ~tlm_extension ()
 
- Public Member Functions inherited from tlm::tlm_extension_base
virtual void free ()
 

Static Public Member Functions

static ControlExtensiongetExtension (const tlm::tlm_generic_payload *payload)
 
static ControlExtensiongetExtension (const tlm::tlm_generic_payload &payload)
 

Private Attributes

bool privileged
 
bool secure
 
bool instruction
 
uint8_t qos
 
std::optional< uint32_t > stream_id
 
std::optional< uint32_t > substream_id
 

Additional Inherited Members

- Static Public Attributes inherited from tlm::tlm_extension< ControlExtension >
static const unsigned int ID
 
- Protected Member Functions inherited from tlm::tlm_extension_base
virtual ~tlm_extension_base ()
 
- Static Protected Member Functions inherited from tlm::tlm_extension_base
static unsigned int register_extension (const std::type_info &)
 

Detailed Description

Definition at line 94 of file sc_ext.hh.

Constructor & Destructor Documentation

◆ ControlExtension()

Gem5SystemC::ControlExtension::ControlExtension ( )

Definition at line 199 of file sc_ext.cc.

Referenced by clone().

Member Function Documentation

◆ clone()

tlm::tlm_extension_base * Gem5SystemC::ControlExtension::clone ( ) const
overridevirtual

Implements tlm::tlm_extension< ControlExtension >.

Definition at line 207 of file sc_ext.cc.

References ControlExtension().

◆ copy_from()

void Gem5SystemC::ControlExtension::copy_from ( const tlm_extension_base & ext)
override

Definition at line 213 of file sc_ext.cc.

References gem5::ArmISA::ext.

◆ getExtension() [1/2]

ControlExtension & Gem5SystemC::ControlExtension::getExtension ( const tlm::tlm_generic_payload & payload)
static

Definition at line 220 of file sc_ext.cc.

References getExtension().

◆ getExtension() [2/2]

ControlExtension & Gem5SystemC::ControlExtension::getExtension ( const tlm::tlm_generic_payload * payload)
static

Definition at line 226 of file sc_ext.cc.

References tlm::tlm_generic_payload::get_extension(), and sc_assert.

Referenced by getExtension().

◆ getQos()

uint8_t Gem5SystemC::ControlExtension::getQos ( ) const

Definition at line 271 of file sc_ext.cc.

References qos.

◆ getStreamId()

std::optional< uint32_t > Gem5SystemC::ControlExtension::getStreamId ( ) const

Definition at line 289 of file sc_ext.cc.

References stream_id.

◆ getSubstreamId()

std::optional< uint32_t > Gem5SystemC::ControlExtension::getSubstreamId ( ) const

Definition at line 307 of file sc_ext.cc.

References substream_id.

◆ hasStreamId()

bool Gem5SystemC::ControlExtension::hasStreamId ( ) const

Definition at line 283 of file sc_ext.cc.

References stream_id.

◆ hasSubstreamId()

bool Gem5SystemC::ControlExtension::hasSubstreamId ( ) const

Definition at line 301 of file sc_ext.cc.

References substream_id.

◆ isInstruction()

bool Gem5SystemC::ControlExtension::isInstruction ( ) const

Definition at line 259 of file sc_ext.cc.

References instruction.

Referenced by gem5::fastmodel::AmbaFromTlmBridge64::syncControlExtension().

◆ isPrivileged()

bool Gem5SystemC::ControlExtension::isPrivileged ( ) const

Definition at line 235 of file sc_ext.cc.

References privileged.

Referenced by gem5::fastmodel::AmbaFromTlmBridge64::syncControlExtension().

◆ isSecure()

bool Gem5SystemC::ControlExtension::isSecure ( ) const

Definition at line 247 of file sc_ext.cc.

References secure.

Referenced by gem5::fastmodel::AmbaFromTlmBridge64::syncControlExtension().

◆ setInstruction()

void Gem5SystemC::ControlExtension::setInstruction ( bool i)

Definition at line 265 of file sc_ext.cc.

References gem5::ArmISA::i, and instruction.

Referenced by gem5::fastmodel::AmbaToTlmBridge64::setupControlExtension().

◆ setPrivileged()

void Gem5SystemC::ControlExtension::setPrivileged ( bool p)

Definition at line 241 of file sc_ext.cc.

References gem5::MipsISA::p, and privileged.

Referenced by gem5::fastmodel::AmbaToTlmBridge64::setupControlExtension().

◆ setQos()

void Gem5SystemC::ControlExtension::setQos ( uint8_t q)

Definition at line 277 of file sc_ext.cc.

References gem5::ArmISA::q, and qos.

◆ setSecure()

void Gem5SystemC::ControlExtension::setSecure ( bool s)

Definition at line 253 of file sc_ext.cc.

References gem5::ArmISA::s, and secure.

Referenced by gem5::fastmodel::AmbaToTlmBridge64::setupControlExtension().

◆ setStreamId()

void Gem5SystemC::ControlExtension::setStreamId ( std::optional< uint32_t > s)

Definition at line 295 of file sc_ext.cc.

References gem5::ArmISA::s, and stream_id.

Referenced by gem5::fastmodel::AmbaToTlmBridge64::setupControlExtension().

◆ setSubstreamId()

void Gem5SystemC::ControlExtension::setSubstreamId ( std::optional< uint32_t > s)

Definition at line 313 of file sc_ext.cc.

References gem5::ArmISA::s, and substream_id.

Member Data Documentation

◆ instruction

bool Gem5SystemC::ControlExtension::instruction
private

Definition at line 131 of file sc_ext.hh.

Referenced by isInstruction(), and setInstruction().

◆ privileged

bool Gem5SystemC::ControlExtension::privileged
private

Definition at line 129 of file sc_ext.hh.

Referenced by isPrivileged(), and setPrivileged().

◆ qos

uint8_t Gem5SystemC::ControlExtension::qos
private

Definition at line 134 of file sc_ext.hh.

Referenced by getQos(), and setQos().

◆ secure

bool Gem5SystemC::ControlExtension::secure
private

Definition at line 130 of file sc_ext.hh.

Referenced by isSecure(), and setSecure().

◆ stream_id

std::optional<uint32_t> Gem5SystemC::ControlExtension::stream_id
private

Definition at line 137 of file sc_ext.hh.

Referenced by getStreamId(), hasStreamId(), and setStreamId().

◆ substream_id

std::optional<uint32_t> Gem5SystemC::ControlExtension::substream_id
private

Definition at line 138 of file sc_ext.hh.

Referenced by getSubstreamId(), hasSubstreamId(), and setSubstreamId().


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