gem5  v20.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Gcn3ISA::GPUISA Class Reference

#include <gpu_isa.hh>

Public Member Functions

 GPUISA (Wavefront &wf)
 
template<typename T >
readConstVal (int opIdx) const
 
ScalarRegU32 readMiscReg (int opIdx) const
 
void writeMiscReg (int opIdx, ScalarRegU32 operandVal)
 
bool hasScalarUnit () const
 
void advancePC (GPUDynInstPtr gpuDynInst)
 

Private Member Functions

ScalarRegU32 readPosConstReg (int opIdx) const
 
ScalarRegI32 readNegConstReg (int opIdx) const
 

Private Attributes

Wavefrontwavefront
 
StatusReg statusReg
 
ScalarRegU32 m0
 

Static Private Attributes

static const std::array< const ScalarRegU32, NumPosConstRegsposConstRegs
 
static const std::array< const ScalarRegI32, NumNegConstRegsnegConstRegs
 

Detailed Description

Definition at line 51 of file gpu_isa.hh.

Constructor & Destructor Documentation

◆ GPUISA()

Gcn3ISA::GPUISA::GPUISA ( Wavefront wf)

Definition at line 45 of file isa.cc.

Member Function Documentation

◆ advancePC()

void Gcn3ISA::GPUISA::advancePC ( GPUDynInstPtr  gpuDynInst)

Definition at line 84 of file isa.cc.

References Wavefront::pc(), and wavefront.

◆ hasScalarUnit()

bool Gcn3ISA::GPUISA::hasScalarUnit ( ) const
inline

Definition at line 76 of file gpu_isa.hh.

◆ readConstVal()

template<typename T >
T Gcn3ISA::GPUISA::readConstVal ( int  opIdx) const
inline

◆ readMiscReg()

ScalarRegU32 Gcn3ISA::GPUISA::readMiscReg ( int  opIdx) const

◆ readNegConstReg()

ScalarRegI32 Gcn3ISA::GPUISA::readNegConstReg ( int  opIdx) const
inlineprivate

Definition at line 85 of file gpu_isa.hh.

References negConstRegs, and Gcn3ISA::REG_INT_CONST_NEG_MIN.

Referenced by readConstVal().

◆ readPosConstReg()

ScalarRegU32 Gcn3ISA::GPUISA::readPosConstReg ( int  opIdx) const
inlineprivate

Definition at line 80 of file gpu_isa.hh.

References posConstRegs, and Gcn3ISA::REG_INT_CONST_POS_MIN.

Referenced by readConstVal().

◆ writeMiscReg()

void Gcn3ISA::GPUISA::writeMiscReg ( int  opIdx,
ScalarRegU32  operandVal 
)

Definition at line 67 of file isa.cc.

References fatal, m0, Gcn3ISA::REG_M0, Gcn3ISA::REG_SCC, Gcn3ISA::StatusReg::SCC, and statusReg.

Member Data Documentation

◆ m0

ScalarRegU32 Gcn3ISA::GPUISA::m0
private

Definition at line 101 of file gpu_isa.hh.

Referenced by readMiscReg(), and writeMiscReg().

◆ negConstRegs

const std::array< const ScalarRegI32, NumNegConstRegs > Gcn3ISA::GPUISA::negConstRegs
staticprivate
Initial value:
= { {
-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15,
-16
} }

Definition at line 93 of file gpu_isa.hh.

Referenced by readNegConstReg().

◆ posConstRegs

const std::array< const ScalarRegU32, NumPosConstRegs > Gcn3ISA::GPUISA::posConstRegs
staticprivate
Initial value:
= { {
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64
} }

Definition at line 91 of file gpu_isa.hh.

Referenced by readPosConstReg().

◆ statusReg

StatusReg Gcn3ISA::GPUISA::statusReg
private

Definition at line 99 of file gpu_isa.hh.

Referenced by readMiscReg(), and writeMiscReg().

◆ wavefront

Wavefront& Gcn3ISA::GPUISA::wavefront
private

Definition at line 96 of file gpu_isa.hh.

Referenced by advancePC().


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

Generated on Wed Sep 30 2020 14:02:40 for gem5 by doxygen 1.8.17