gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::VegaISA::PackedReg< BITS, ELEM_SIZE > Class Template Reference

#include <operand.hh>

Public Member Functions

 PackedReg ()=default
void setDword (int dw, uint32_t value)
uint32_t getDword (int dw)
uint32_t getElem (int elem)
void setElem (int elem, uint32_t value)

Private Attributes

uint32_t dwords [NumDwords] = {}

Static Private Attributes

static constexpr int NumDwords = BITS / 32

Detailed Description

template<int BITS, int ELEM_SIZE>
class gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >

Definition at line 859 of file operand.hh.

Constructor & Destructor Documentation

◆ PackedReg()

template<int BITS, int ELEM_SIZE>
gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >::PackedReg ( )
default

Member Function Documentation

◆ getDword()

template<int BITS, int ELEM_SIZE>
uint32_t gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >::getDword ( int dw)
inline

Definition at line 885 of file operand.hh.

References dwords, and NumDwords.

◆ getElem()

template<int BITS, int ELEM_SIZE>
uint32_t gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >::getElem ( int elem)
inline

◆ setDword()

template<int BITS, int ELEM_SIZE>
void gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >::setDword ( int dw,
uint32_t value )
inline

◆ setElem()

template<int BITS, int ELEM_SIZE>
void gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >::setElem ( int elem,
uint32_t value )
inline

Definition at line 933 of file operand.hh.

References dwords, gem5::RiscvISA::elem_mask(), and gem5::ArmISA::mask.

Member Data Documentation

◆ dwords

template<int BITS, int ELEM_SIZE>
uint32_t gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >::dwords[NumDwords] = {}
private

Definition at line 872 of file operand.hh.

Referenced by getDword(), getElem(), setDword(), and setElem().

◆ NumDwords

template<int BITS, int ELEM_SIZE>
int gem5::VegaISA::PackedReg< BITS, ELEM_SIZE >::NumDwords = BITS / 32
staticconstexprprivate

Definition at line 871 of file operand.hh.

Referenced by getDword(), and setDword().


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

Generated on Sat Oct 18 2025 08:07:52 for gem5 by doxygen 1.14.0