gem5
v20.1.0.0
|
#include <gpu_isa.hh>
Public Member Functions | |
GPUISA (Wavefront &wf) | |
template<typename T > | |
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 | |
Wavefront & | wavefront |
StatusReg | statusReg |
ScalarRegU32 | m0 |
Static Private Attributes | |
static const std::array< const ScalarRegU32, NumPosConstRegs > | posConstRegs |
static const std::array< const ScalarRegI32, NumNegConstRegs > | negConstRegs |
Definition at line 51 of file gpu_isa.hh.
void Gcn3ISA::GPUISA::advancePC | ( | GPUDynInstPtr | gpuDynInst | ) |
Definition at line 84 of file isa.cc.
References Wavefront::pc(), and wavefront.
|
inline |
Definition at line 76 of file gpu_isa.hh.
|
inline |
Definition at line 57 of file gpu_isa.hh.
References Gcn3ISA::isNegConstVal(), Gcn3ISA::isPosConstVal(), panic_if, readNegConstReg(), readPosConstReg(), and X86ISA::val.
ScalarRegU32 Gcn3ISA::GPUISA::readMiscReg | ( | int | opIdx | ) | const |
Definition at line 50 of file isa.cc.
References fatal, m0, Gcn3ISA::REG_M0, Gcn3ISA::REG_SCC, Gcn3ISA::REG_ZERO, Gcn3ISA::StatusReg::SCC, and statusReg.
|
inlineprivate |
Definition at line 85 of file gpu_isa.hh.
References negConstRegs, and Gcn3ISA::REG_INT_CONST_NEG_MIN.
Referenced by readConstVal().
|
inlineprivate |
Definition at line 80 of file gpu_isa.hh.
References posConstRegs, and Gcn3ISA::REG_INT_CONST_POS_MIN.
Referenced by readConstVal().
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.
|
private |
Definition at line 101 of file gpu_isa.hh.
Referenced by readMiscReg(), and writeMiscReg().
|
staticprivate |
Definition at line 93 of file gpu_isa.hh.
Referenced by readNegConstReg().
|
staticprivate |
Definition at line 91 of file gpu_isa.hh.
Referenced by readPosConstReg().
|
private |
Definition at line 99 of file gpu_isa.hh.
Referenced by readMiscReg(), and writeMiscReg().
|
private |
Definition at line 96 of file gpu_isa.hh.
Referenced by advancePC().