gem5  v20.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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)
 
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
 
ScalarRegU32 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 50 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 92 of file isa.cc.

References negConstRegs, Wavefront::pc(), posConstRegs, and wavefront.

Referenced by hasScalarUnit().

◆ hasScalarUnit()

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

Definition at line 57 of file gpu_isa.hh.

References advancePC().

◆ readMiscReg()

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

◆ readNegConstReg()

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

Definition at line 66 of file gpu_isa.hh.

References negConstRegs, and Gcn3ISA::REG_INT_CONST_NEG_MIN.

Referenced by readMiscReg().

◆ readPosConstReg()

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

Definition at line 61 of file gpu_isa.hh.

References posConstRegs, and Gcn3ISA::REG_INT_CONST_POS_MIN.

Referenced by readMiscReg().

◆ writeMiscReg()

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

Definition at line 75 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 83 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 75 of file gpu_isa.hh.

Referenced by advancePC(), and 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 73 of file gpu_isa.hh.

Referenced by advancePC(), and readPosConstReg().

◆ statusReg

StatusReg Gcn3ISA::GPUISA::statusReg
private

Definition at line 81 of file gpu_isa.hh.

Referenced by readMiscReg(), and writeMiscReg().

◆ wavefront

Wavefront& Gcn3ISA::GPUISA::wavefront
private

Definition at line 78 of file gpu_isa.hh.

Referenced by advancePC().


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

Generated on Thu May 28 2020 16:21:58 for gem5 by doxygen 1.8.13