gem5
v22.1.0.0
|
#include <instructions.hh>
Public Member Functions | |
Inst_SOPP__S_ENDPGM (InFmt_SOPP *) | |
~Inst_SOPP__S_ENDPGM () | |
int | getNumOperands () override |
int | numDstRegOperands () override |
int | numSrcRegOperands () override |
int | getOperandSize (int opIdx) override |
void | execute (GPUDynInstPtr) override |
![]() | |
Inst_SOPP (InFmt_SOPP *, const std::string &opcode) | |
~Inst_SOPP () | |
int | instSize () const override |
void | generateDisassembly () override |
void | initOperandInfo () override |
![]() | |
VEGAGPUStaticInst (const std::string &opcode) | |
~VEGAGPUStaticInst () | |
bool | isFlatScratchRegister (int opIdx) override |
bool | isExecMaskRegister (int opIdx) override |
int | coalescerTokenCount () const override |
Return the number of tokens needed by the coalescer. More... | |
ScalarRegU32 | srcLiteral () const override |
![]() | |
GPUStaticInst (const std::string &opcode) | |
virtual | ~GPUStaticInst () |
void | instAddr (int inst_addr) |
int | instAddr () const |
int | nextInstAddr () const |
void | instNum (int num) |
int | instNum () |
void | ipdInstNum (int num) |
int | ipdInstNum () const |
void | initDynOperandInfo (Wavefront *wf, ComputeUnit *cu) |
const std::string & | disassemble () |
int | numSrcVecOperands () |
int | numDstVecOperands () |
int | numSrcVecDWords () |
int | numDstVecDWords () |
int | numSrcScalarOperands () |
int | numDstScalarOperands () |
int | numSrcScalarDWords () |
int | numDstScalarDWords () |
int | maxOperandSize () |
bool | isALU () const |
bool | isBranch () const |
bool | isCondBranch () const |
bool | isNop () const |
bool | isReturn () const |
bool | isEndOfKernel () const |
bool | isKernelLaunch () const |
bool | isSDWAInst () const |
bool | isDPPInst () const |
bool | isUnconditionalJump () const |
bool | isSpecialOp () const |
bool | isWaitcnt () const |
bool | isSleep () const |
bool | isBarrier () const |
bool | isMemSync () const |
bool | isMemRef () const |
bool | isFlat () const |
bool | isFlatGlobal () const |
bool | isLoad () const |
bool | isStore () const |
bool | isAtomic () const |
bool | isAtomicNoRet () const |
bool | isAtomicRet () const |
bool | isScalar () const |
bool | readsSCC () const |
bool | writesSCC () const |
bool | readsVCC () const |
bool | writesVCC () const |
bool | readsEXEC () const |
bool | writesEXEC () const |
bool | readsMode () const |
bool | writesMode () const |
bool | ignoreExec () const |
bool | isAtomicAnd () const |
bool | isAtomicOr () const |
bool | isAtomicXor () const |
bool | isAtomicCAS () const |
bool | isAtomicExch () const |
bool | isAtomicAdd () const |
bool | isAtomicSub () const |
bool | isAtomicInc () const |
bool | isAtomicDec () const |
bool | isAtomicMax () const |
bool | isAtomicMin () const |
bool | isArgLoad () const |
bool | isGlobalMem () const |
bool | isLocalMem () const |
bool | isArgSeg () const |
bool | isGlobalSeg () const |
bool | isGroupSeg () const |
bool | isKernArgSeg () const |
bool | isPrivateSeg () const |
bool | isReadOnlySeg () const |
bool | isSpillSeg () const |
bool | isGloballyCoherent () const |
Coherence domain of a memory instruction. More... | |
bool | isSystemCoherent () const |
bool | isF16 () const |
bool | isF32 () const |
bool | isF64 () const |
bool | isFMA () const |
bool | isMAC () const |
bool | isMAD () const |
virtual void | initiateAcc (GPUDynInstPtr gpuDynInst) |
virtual void | completeAcc (GPUDynInstPtr gpuDynInst) |
virtual uint32_t | getTargetPc () |
void | setFlag (Flags flag) |
const std::string & | opcode () const |
const std::vector< OperandInfo > & | srcOperands () const |
const std::vector< OperandInfo > & | dstOperands () const |
const std::vector< OperandInfo > & | srcVecRegOperands () const |
const std::vector< OperandInfo > & | dstVecRegOperands () const |
const std::vector< OperandInfo > & | srcScalarRegOperands () const |
const std::vector< OperandInfo > & | dstScalarRegOperands () const |
Additional Inherited Members | |
![]() | |
enum | OpType { SRC_VEC , SRC_SCALAR , DST_VEC , DST_SCALAR } |
typedef int(RegisterManager::* | MapRegFn) (Wavefront *, int) |
![]() | |
enums::StorageClassType | executed_as |
![]() | |
static uint64_t | dynamic_id_count |
![]() | |
void | panicUnimplemented () const |
![]() | |
InFmt_SOPP | instData |
![]() | |
ScalarRegU32 | _srcLiteral |
if the instruction has a src literal - an immediate value that is part of the instruction stream - we store that here More... | |
![]() | |
const std::string | _opcode |
std::string | disassembly |
int | _instNum |
int | _instAddr |
std::vector< OperandInfo > | srcOps |
std::vector< OperandInfo > | dstOps |
Definition at line 4517 of file instructions.hh.
gem5::VegaISA::Inst_SOPP__S_ENDPGM::Inst_SOPP__S_ENDPGM | ( | InFmt_SOPP * | iFmt | ) |
Definition at line 4191 of file instructions.cc.
References gem5::GPUStaticInst::setFlag().
gem5::VegaISA::Inst_SOPP__S_ENDPGM::~Inst_SOPP__S_ENDPGM | ( | ) |
Definition at line 4197 of file instructions.cc.
|
overridevirtual |
The parent WF of this instruction is exiting, therefore it should not participate in this barrier any longer. This prevents possible deadlock issues if WFs exit early.
If all WFs have finished, and hence the WG has finished, then we can free up the barrier belonging to the parent WG, but only if we actually used a barrier (i.e., more than one WF in the WG).
Last wavefront of the workgroup has executed return. If the workgroup is not the final one in the kernel, then simply retire it; however, if it is the final one, i.e., indicating the kernel end, then release operation (i.e., GL2 WB) is needed
if it is a kernel end, inject a memory sync, i.e., GL2 WB, and retire the workgroup after receving response. note that GL0V and GL1 are read only, and they just forward GL2 WB request. When forwarding, GL1 send the request to all GL2 in the complex
Implements gem5::GPUStaticInst.
Definition at line 4207 of file instructions.cc.
References gem5::ComputeUnit::activeWaves, gem5::Wavefront::barrierId(), gem5::ComputeUnit::ComputeUnitStats::completedWfs, gem5::ComputeUnit::ComputeUnitStats::completedWGs, gem5::Wavefront::computeUnit, gem5::ComputeUnit::cu_id, gem5::ComputeUnit::decMaxBarrierCnt(), gem5::LdsState::decreaseRefCounter(), gem5::Shader::dispatcher(), gem5::Wavefront::dispatchId, DPRINTF, gem5::Wavefront::dropFetch, gem5::ComputeUnit::fetchStage, gem5::FetchStage::fetchUnit(), gem5::FetchUnit::flushBuf(), gem5::RegisterManager::freeRegisters(), gem5::ComputeUnit::getLds(), gem5::Wavefront::getStatus(), gem5::Wavefront::hasBarrier(), gem5::ArmISA::i, gem5::Shader::impl_kern_end_rel, gem5::Wavefront::instructionBuffer, gem5::WFBarrier::InvalidID, gem5::GPUDispatcher::isReachingKernelEnd(), gem5::Wavefront::lastInstExec, gem5::ComputeUnit::maxBarrierCnt(), gem5::GPUDispatcher::notifyWgCompl(), panic_if, gem5::Wavefront::pendingFetch, gem5::Shader::prepareFlush(), gem5::Wavefront::rawDist, gem5::Wavefront::WavefrontStats::readsPerWrite, gem5::ComputeUnit::registerManager, gem5::Wavefront::releaseBarrier(), gem5::ComputeUnit::releaseBarrier(), gem5::Wavefront::S_BARRIER, gem5::Wavefront::S_RETURNING, gem5::Wavefront::S_STOPPED, gem5::statistics::DistBase< Derived, Stor >::sample(), gem5::GPUDispatcher::scheduleDispatch(), gem5::GPUStaticInst::setFlag(), gem5::Wavefront::setStatus(), gem5::ComputeUnit::shader, gem5::Wavefront::simdId, gem5::ComputeUnit::stats, gem5::Wavefront::stats, gem5::Wavefront::vecReads, gem5::Wavefront::wfDynId, gem5::Wavefront::wfSlotId, and gem5::Wavefront::wgId.
|
inlineoverridevirtual |
Implements gem5::GPUStaticInst.
Definition at line 4524 of file instructions.hh.
References numDstRegOperands(), and numSrcRegOperands().
|
inlineoverridevirtual |
Reimplemented from gem5::VegaISA::VEGAGPUStaticInst.
Definition at line 4533 of file instructions.hh.
References fatal.
|
inlineoverridevirtual |
Implements gem5::GPUStaticInst.
Definition at line 4529 of file instructions.hh.
Referenced by getNumOperands().
|
inlineoverridevirtual |
Implements gem5::GPUStaticInst.
Definition at line 4530 of file instructions.hh.
Referenced by getNumOperands().