gem5
|
#include <mem.hh>
Public Member Functions | |
void | generateDisassembly () override |
AtomicInst (const Brig::BrigInstBase *ib, const BrigObject *obj, const char *_opcode) | |
void | initiateAcc (GPUDynInstPtr gpuDynInst) override |
void | completeAcc (GPUDynInstPtr gpuDynInst) override |
void | execute (GPUDynInstPtr gpuDynInst) override |
Public Member Functions inherited from HsailISA::AtomicInstBase< MemDataType::OperandType, AddrOperandType, NumSrcOperands, HasDst > | |
AtomicInstBase (const Brig::BrigInstBase *ib, const BrigObject *obj, const char *_opcode) | |
int | numSrcRegOperands () |
int | numDstRegOperands () |
int | getNumOperands () |
bool | isVectorRegister (int operandIndex) |
bool | isCondRegister (int operandIndex) |
bool | isScalarRegister (int operandIndex) |
bool | isSrcOperand (int operandIndex) |
bool | isDstOperand (int operandIndex) |
int | getOperandSize (int operandIndex) |
int | getRegisterIndex (int operandIndex, GPUDynInstPtr gpuDynInst) |
Public Member Functions inherited from HsailISA::HsailGPUStaticInst | |
HsailGPUStaticInst (const BrigObject *obj, const std::string &opcode) | |
int | instSize () const override |
bool | isValid () const override |
Public Member Functions inherited from GPUStaticInst | |
GPUStaticInst (const std::string &opcode) | |
void | instAddr (int inst_addr) |
int | instAddr () const |
int | nextInstAddr () const |
void | instNum (int num) |
int | instNum () |
void | ipdInstNum (int num) |
int | ipdInstNum () const |
const std::string & | disassemble () |
bool | isALU () const |
bool | isBranch () const |
bool | isNop () const |
bool | isReturn () const |
bool | isUnconditionalJump () const |
bool | isSpecialOp () const |
bool | isWaitcnt () const |
bool | isBarrier () const |
bool | isMemFence () const |
bool | isMemRef () const |
bool | isFlat () 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 | 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 | isWorkitemScope () const |
bool | isWavefrontScope () const |
bool | isWorkgroupScope () const |
bool | isDeviceScope () const |
bool | isSystemScope () const |
bool | isNoScope () const |
bool | isRelaxedOrder () const |
bool | isAcquire () const |
bool | isRelease () const |
bool | isAcquireRelease () const |
bool | isNoOrder () const |
bool | isGloballyCoherent () const |
Coherence domain of a memory instruction. More... | |
bool | isSystemCoherent () const |
virtual uint32_t | getTargetPc () |
void | setFlag (Flags flag) |
virtual void | execLdAcq (GPUDynInstPtr gpuDynInst) |
virtual void | execSt (GPUDynInstPtr gpuDynInst) |
Public Member Functions inherited from HsailISA::MemInst | |
MemInst () | |
MemInst (Enums::MemType m_type) | |
void | init_addr (AddrOperandBase *_addr_operand) |
int | getMemOperandSize () |
AddrOperandBase * | getAddressOperand () |
Private Member Functions | |
void | execAtomic (GPUDynInstPtr gpuDynInst) override |
void | execAtomicAcq (GPUDynInstPtr gpuDynInst) override |
Additional Inherited Members | |
Public Attributes inherited from HsailISA::AtomicInstBase< MemDataType::OperandType, AddrOperandType, NumSrcOperands, HasDst > | |
MemDataType::OperandType::DestOperand | dest |
MemDataType::OperandType::SrcOperand | src [NumSrcOperands] |
AddrOperandType | addr |
Brig::BrigSegment | segment |
Brig::BrigMemoryOrder | memoryOrder |
Brig::BrigAtomicOperation | atomicOperation |
Brig::BrigMemoryScope | memoryScope |
Brig::BrigOpcode | opcode |
Public Attributes inherited from GPUStaticInst | |
Enums::StorageClassType | executed_as |
Static Public Attributes inherited from GPUStaticInst | |
static uint64_t | dynamic_id_count |
Protected Attributes inherited from HsailISA::HsailGPUStaticInst | |
HsailCode * | hsailCode |
Protected Attributes inherited from GPUStaticInst | |
const std::string | opcode |
std::string | disassembly |
int | _instNum |
int | _instAddr |
int | _ipdInstNum |
Identifier of the immediate post-dominator instruction. More... | |
std::bitset< Num_Flags > | _flags |
|
inline |
Definition at line 1465 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr.
|
inlineoverridevirtual |
Reimplemented from GPUStaticInst.
Definition at line 1507 of file mem.hh.
References Wavefront::computeUnit, ComputeUnit::cu_id, HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::dest, DPRINTF, ArmISA::i, GPUStaticInst::isAtomicRet(), GPUStaticInst::isGlobalMem(), GPUStaticInst::isLocalMem(), Wavefront::remap(), Wavefront::simdId, ComputeUnit::vrf, MipsISA::w, ComputeUnit::wfSize(), and Wavefront::wfSlotId.
|
inlineoverrideprivatevirtual |
Reimplemented from GPUStaticInst.
Definition at line 1565 of file mem.hh.
References ArmISA::d, Packet::dataStatic(), ArmISA::e, GPUStaticInst::execAtomicAcq(), ArmISA::f, fatal, ArmISA::i, GPUStaticInst::isAtomicAdd(), GPUStaticInst::isAtomicAnd(), GPUStaticInst::isAtomicCAS(), GPUStaticInst::isAtomicDec(), GPUStaticInst::isAtomicExch(), GPUStaticInst::isAtomicInc(), GPUStaticInst::isAtomicMax(), GPUStaticInst::isAtomicMin(), GPUStaticInst::isAtomicOr(), GPUStaticInst::isAtomicSub(), GPUStaticInst::isAtomicXor(), GPUStaticInst::isLocalMem(), Wavefront::ldsChunk, LdsChunk::read(), MemCmd::SwapReq, MipsISA::vaddr, and LdsChunk::write().
|
inlineoverrideprivatevirtual |
Reimplemented from GPUStaticInst.
Definition at line 1665 of file mem.hh.
References Request::ACQUIRE, GPUStaticInst::isLocalMem(), and Request::setFlags().
|
overridevirtual |
Implements GPUStaticInst.
Definition at line 545 of file mem_impl.hh.
References addr, Brig::BRIG_SEGMENT_GLOBAL, Brig::BRIG_SEGMENT_GROUP, Wavefront::computeUnit, ComputeUnit::cu_id, Wavefront::execMask(), fatal, LocalMemPipeline::getLMReqFIFO(), GLBMEM_PIPE, ComputeUnit::globalMemoryPipe, GlobalMemPipeline::issueRequest(), Wavefront::kernId, LDSMEM_PIPE, ComputeUnit::localMemoryPipe, ArmISA::m, Wavefront::memReqsInPipe, Wavefront::outstandingReqs, Wavefront::outstandingReqsRdGm, Wavefront::outstandingReqsRdLm, Wavefront::outstandingReqsWrGm, Wavefront::outstandingReqsWrLm, Wavefront::rdGmReqsInPipe, Wavefront::rdLmReqsInPipe, ComputeUnit::shader, Wavefront::simdId, Shader::tick_cnt, Shader::ticks(), MipsISA::w, Wavefront::wfDynId, ComputeUnit::wfSize(), Wavefront::wfSlotId, Wavefront::wrGmReqsInPipe, and Wavefront::wrLmReqsInPipe.
|
overridevirtual |
Reimplemented from HsailISA::HsailGPUStaticInst.
Definition at line 626 of file mem_impl.hh.
References addr, HsailISA::atomicOpToString(), csprintf(), ArmISA::i, ArmISA::opcode, and segmentNames.
|
inlineoverridevirtual |
Reimplemented from GPUStaticInst.
Definition at line 1476 of file mem.hh.
References GPUStaticInst::execAtomic(), GPUStaticInst::isLocalMem(), Request::RELEASE, and Request::setFlags().