gem5
v22.1.0.0
|
Physical register ID. More...
#include <reg_class.hh>
Public Member Functions | |
PhysRegId () | |
PhysRegId (const RegClass ®_class, RegIndex _regIdx, RegIndex _flatIdx) | |
Scalar PhysRegId constructor. More... | |
bool | isFixedMapping () const |
Returns true if this register is always associated to the same architectural register. More... | |
const RegIndex & | flatIndex () const |
Flat index accessor. More... | |
int | getNumPinnedWrites () const |
void | setNumPinnedWrites (int numWrites) |
void | decrNumPinnedWrites () |
void | incrNumPinnedWrites () |
bool | isPinned () const |
int | getNumPinnedWritesToComplete () const |
void | setNumPinnedWritesToComplete (int numWrites) |
void | decrNumPinnedWritesToComplete () |
void | incrNumPinnedWritesToComplete () |
bool | operator< (const PhysRegId &that) const |
Explicit forward methods, to prevent comparisons of PhysRegId with RegIds. More... | |
bool | operator== (const PhysRegId &that) const |
bool | operator!= (const PhysRegId &that) const |
constexpr RegIndex | index () const |
Visible RegId methods. More... | |
constexpr const RegClass & | regClass () const |
Class accessor. More... | |
constexpr RegClassType | classValue () const |
constexpr const char * | className () const |
Return a const char* with the register class name. More... | |
constexpr bool | is (RegClassType reg_class) const |
Private Attributes | |
RegIndex | flatIdx |
int | numPinnedWritesToComplete |
bool | pinned |
![]() | |
const RegClass * | _regClass = nullptr |
RegIndex | regIdx |
int | numPinnedWrites |
Additional Inherited Members | |
![]() | |
constexpr | RegId () |
constexpr | RegId (const RegClass ®_class, RegIndex reg_idx) |
constexpr | operator RegIndex () const |
constexpr bool | operator== (const RegId &that) const |
constexpr bool | operator!= (const RegId &that) const |
constexpr bool | operator< (const RegId &that) const |
Order operator. More... | |
constexpr bool | isRenameable () const |
Return true if this register can be renamed. More... | |
constexpr bool | is (RegClassType reg_class) const |
constexpr RegIndex | index () const |
Index accessors. More... | |
constexpr const RegClass & | regClass () const |
Class accessor. More... | |
constexpr RegClassType | classValue () const |
constexpr const char * | className () const |
Return a const char* with the register class name. More... | |
constexpr bool | isFlat () const |
RegId | flatten (const BaseISA &isa) const |
int | getNumPinnedWrites () const |
void | setNumPinnedWrites (int num_writes) |
Physical register ID.
Like a register ID but physical. The inheritance is private because the only relationship between this types is functional, and it is done to prevent code replication.
Definition at line 391 of file reg_class.hh.
|
inlineexplicit |
Definition at line 399 of file reg_class.hh.
|
inlineexplicit |
Scalar PhysRegId constructor.
Definition at line 404 of file reg_class.hh.
|
inlineconstexpr |
Return a const char* with the register class name.
Definition at line 154 of file reg_class.hh.
Referenced by gem5::o3::InstructionQueue::addToDependents(), gem5::o3::InstructionQueue::addToProducers(), gem5::o3::Rename::renameSrcRegs(), gem5::o3::Scoreboard::setReg(), gem5::o3::ElasticTrace::updateRegDep(), and gem5::o3::InstructionQueue::wakeDependents().
|
inlineconstexpr |
Definition at line 152 of file reg_class.hh.
Referenced by gem5::o3::UnifiedFreeList::addReg(), gem5::o3::CPU::getReg(), gem5::o3::PhysRegFile::getReg(), gem5::o3::CPU::getWritableReg(), gem5::o3::PhysRegFile::getWritableReg(), gem5::o3::CPU::setReg(), and gem5::o3::PhysRegFile::setReg().
|
inline |
Definition at line 466 of file reg_class.hh.
References gem5::RegId::numPinnedWrites.
Referenced by gem5::o3::SimpleRenameMap::rename().
|
inline |
Definition at line 483 of file reg_class.hh.
References numPinnedWritesToComplete.
Referenced by gem5::o3::InstructionQueue::wakeDependents().
|
inline |
Flat index accessor.
Definition at line 449 of file reg_class.hh.
References flatIdx.
Referenced by gem5::o3::InstructionQueue::addToDependents(), gem5::o3::InstructionQueue::addToProducers(), gem5::o3::InstructionQueue::doSquash(), gem5::o3::Scoreboard::getReg(), gem5::o3::SimpleRenameMap::rename(), gem5::o3::Rename::renameSrcRegs(), gem5::o3::Scoreboard::setReg(), gem5::o3::Scoreboard::unsetReg(), gem5::o3::ElasticTrace::updateRegDep(), and gem5::o3::InstructionQueue::wakeDependents().
|
inline |
Definition at line 451 of file reg_class.hh.
References gem5::RegId::numPinnedWrites.
Referenced by gem5::o3::SimpleRenameMap::rename().
|
inline |
Definition at line 472 of file reg_class.hh.
References numPinnedWritesToComplete.
Referenced by gem5::o3::InstructionQueue::wakeDependents().
|
inline |
Definition at line 467 of file reg_class.hh.
References gem5::RegId::numPinnedWrites.
Referenced by gem5::o3::DynInst::setSquashed().
|
inline |
Definition at line 484 of file reg_class.hh.
References numPinnedWritesToComplete.
Referenced by gem5::o3::DynInst::setSquashed().
|
inlineconstexpr |
Visible RegId methods.
Definition at line 148 of file reg_class.hh.
Referenced by gem5::o3::InstructionQueue::addToDependents(), gem5::o3::InstructionQueue::addToProducers(), gem5::o3::PhysRegFile::getReg(), gem5::o3::PhysRegFile::getWritableReg(), gem5::o3::Rename::renameSrcRegs(), gem5::o3::Scoreboard::setReg(), gem5::o3::PhysRegFile::setReg(), and gem5::o3::InstructionQueue::wakeDependents().
|
inlineconstexpr |
Definition at line 144 of file reg_class.hh.
Referenced by gem5::o3::SimpleRenameMap::rename(), and gem5::o3::UnifiedRenameMap::setEntry().
|
inline |
Returns true if this register is always associated to the same architectural register.
Definition at line 446 of file reg_class.hh.
References gem5::RegId::isRenameable().
Referenced by gem5::o3::InstructionQueue::addToDependents(), gem5::o3::InstructionQueue::addToProducers(), gem5::o3::InstructionQueue::doSquash(), gem5::o3::Scoreboard::getReg(), gem5::o3::Scoreboard::setReg(), gem5::o3::Scoreboard::unsetReg(), and gem5::o3::InstructionQueue::wakeDependents().
|
inline |
Definition at line 469 of file reg_class.hh.
References pinned.
Referenced by gem5::o3::DynInst::renameDestReg(), gem5::o3::DynInst::setSquashed(), and gem5::o3::InstructionQueue::wakeDependents().
|
inline |
Definition at line 436 of file reg_class.hh.
References gem5::RegId::operator!=().
|
inline |
Explicit forward methods, to prevent comparisons of PhysRegId with RegIds.
Definition at line 423 of file reg_class.hh.
References gem5::RegId::operator<().
|
inline |
Definition at line 430 of file reg_class.hh.
References gem5::RegId::operator==().
|
inlineconstexpr |
Class accessor.
Definition at line 151 of file reg_class.hh.
|
inline |
Definition at line 454 of file reg_class.hh.
References gem5::RegId::numPinnedWrites, and pinned.
Referenced by gem5::o3::SimpleRenameMap::rename().
|
inline |
Definition at line 478 of file reg_class.hh.
References numPinnedWritesToComplete.
Referenced by gem5::o3::SimpleRenameMap::rename().
|
private |
Definition at line 394 of file reg_class.hh.
Referenced by flatIndex().
|
private |
Definition at line 395 of file reg_class.hh.
Referenced by decrNumPinnedWritesToComplete(), getNumPinnedWritesToComplete(), incrNumPinnedWritesToComplete(), and setNumPinnedWritesToComplete().
|
private |
Definition at line 396 of file reg_class.hh.
Referenced by isPinned(), and setNumPinnedWrites().