|
gem5 [DEVELOP-FOR-25.0]
|
this represents a slice of the overall LDS, intended to be associated with an individual workgroup More...
#include <lds_state.hh>
Public Member Functions | |
| LdsChunk (const uint32_t x_size) | |
| LdsChunk () | |
| template<class T> | |
| T | read (const uint32_t index) |
| a read operation | |
| template<class T> | |
| void | write (const uint32_t index, const T value) |
| a write operation | |
| template<class T> | |
| T | atomic (const uint32_t index, AtomicOpFunctorPtr amoOp) |
| an atomic operation | |
| std::vector< uint8_t >::size_type | size () const |
| get the size of this chunk | |
Public Attributes | |
| uint32_t | dispatchId |
| uint32_t | wgId |
Protected Attributes | |
| std::vector< uint8_t > | chunk |
this represents a slice of the overall LDS, intended to be associated with an individual workgroup
Definition at line 57 of file lds_state.hh.
|
inline |
Definition at line 60 of file lds_state.hh.
References chunk.
|
inline |
Definition at line 65 of file lds_state.hh.
|
inline |
an atomic operation
Atomics that are outside the bounds of the LDS chunk allocated to this WG are dropped.
Definition at line 153 of file lds_state.hh.
References chunk, and gem5::MipsISA::index.
Referenced by gem5::VegaISA::Inst_DS::initAtomicAccess().
|
inline |
a read operation
For reads that are outside the bounds of the LDS chunk allocated to this WG we return 0.
Definition at line 72 of file lds_state.hh.
References chunk, dispatchId, DPRINTF, gem5::MipsISA::index, and wgId.
Referenced by gem5::VegaISA::Inst_FLAT::initAtomicAccess(), gem5::VegaISA::Inst_DS::initDualMemRead(), gem5::VegaISA::Inst_DS::initMemRead(), and gem5::VegaISA::Inst_FLAT::initMemRead().
|
inline |
|
inline |
a write operation
Writes that are outside the bounds of the LDS chunk allocated to this WG are dropped.
Definition at line 111 of file lds_state.hh.
References chunk, dispatchId, DPRINTF, gem5::MipsISA::index, and wgId.
Referenced by gem5::VegaISA::Inst_FLAT::initAtomicAccess(), gem5::VegaISA::Inst_DS::initDualMemWrite(), gem5::VegaISA::Inst_DS::initMemWrite(), and gem5::VegaISA::Inst_FLAT::initMemWrite().
|
protected |
Definition at line 183 of file lds_state.hh.
Referenced by atomic(), LdsChunk(), read(), size(), and write().
| uint32_t gem5::LdsChunk::dispatchId |
Definition at line 178 of file lds_state.hh.
| uint32_t gem5::LdsChunk::wgId |
Definition at line 179 of file lds_state.hh.