gem5 v24.0.0.0
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 843 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 869 of file operand.hh.

◆ 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 917 of file operand.hh.

References 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 856 of file operand.hh.

◆ NumDwords

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

Definition at line 855 of file operand.hh.


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

Generated on Tue Jun 18 2024 16:24:54 for gem5 by doxygen 1.11.0