gem5 v24.0.0.0
|
#include <sc_ext.hh>
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 ControlExtension & | getExtension (const tlm::tlm_generic_payload *payload) |
static ControlExtension & | getExtension (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 &) |
Gem5SystemC::ControlExtension::ControlExtension | ( | ) |
|
overridevirtual |
Implements tlm::tlm_extension< ControlExtension >.
Definition at line 207 of file sc_ext.cc.
References ControlExtension().
|
override |
Definition at line 213 of file sc_ext.cc.
References gem5::ArmISA::ext.
|
static |
Definition at line 220 of file sc_ext.cc.
References getExtension().
|
static |
Definition at line 226 of file sc_ext.cc.
References tlm::tlm_generic_payload::get_extension(), and sc_assert.
Referenced by getExtension().
uint8_t Gem5SystemC::ControlExtension::getQos | ( | ) | const |
std::optional< uint32_t > Gem5SystemC::ControlExtension::getStreamId | ( | ) | const |
std::optional< uint32_t > Gem5SystemC::ControlExtension::getSubstreamId | ( | ) | const |
Definition at line 307 of file sc_ext.cc.
References substream_id.
bool Gem5SystemC::ControlExtension::hasStreamId | ( | ) | const |
bool Gem5SystemC::ControlExtension::hasSubstreamId | ( | ) | const |
Definition at line 301 of file sc_ext.cc.
References substream_id.
bool Gem5SystemC::ControlExtension::isInstruction | ( | ) | const |
Definition at line 259 of file sc_ext.cc.
References instruction.
Referenced by gem5::fastmodel::AmbaFromTlmBridge64::syncControlExtension().
bool Gem5SystemC::ControlExtension::isPrivileged | ( | ) | const |
Definition at line 235 of file sc_ext.cc.
References privileged.
Referenced by gem5::fastmodel::AmbaFromTlmBridge64::syncControlExtension().
bool Gem5SystemC::ControlExtension::isSecure | ( | ) | const |
Definition at line 247 of file sc_ext.cc.
References secure.
Referenced by gem5::fastmodel::AmbaFromTlmBridge64::syncControlExtension().
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().
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().
void Gem5SystemC::ControlExtension::setQos | ( | uint8_t | q | ) |
Definition at line 277 of file sc_ext.cc.
References gem5::ArmISA::q, and qos.
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().
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().
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.
|
private |
Definition at line 131 of file sc_ext.hh.
Referenced by isInstruction(), and setInstruction().
|
private |
Definition at line 129 of file sc_ext.hh.
Referenced by isPrivileged(), and setPrivileged().
|
private |
|
private |
Definition at line 130 of file sc_ext.hh.
Referenced by isSecure(), and setSecure().
|
private |
Definition at line 137 of file sc_ext.hh.
Referenced by getStreamId(), hasStreamId(), and setStreamId().
|
private |
Definition at line 138 of file sc_ext.hh.
Referenced by getSubstreamId(), hasSubstreamId(), and setSubstreamId().