gem5  v21.1.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
gem5::GPUExecContext Class Reference

#include <gpu_exec_context.hh>

Inheritance diagram for gem5::GPUExecContext:
gem5::GPUDynInst

Public Member Functions

 GPUExecContext (ComputeUnit *_cu, Wavefront *_wf)
 
Wavefrontwavefront ()
 
ComputeUnitcomputeUnit ()
 
template<typename T >
readConstVal (int opIdx) const
 
RegVal readMiscReg (int opIdx) const
 
void writeMiscReg (int opIdx, RegVal operandVal)
 

Protected Attributes

ComputeUnitcu
 
Wavefrontwf
 
TheGpuISA::GPUISA * gpuISA
 

Detailed Description

Definition at line 47 of file gpu_exec_context.hh.

Constructor & Destructor Documentation

◆ GPUExecContext()

gem5::GPUExecContext::GPUExecContext ( ComputeUnit _cu,
Wavefront _wf 
)

Definition at line 40 of file gpu_exec_context.cc.

Member Function Documentation

◆ computeUnit()

ComputeUnit * gem5::GPUExecContext::computeUnit ( )

◆ readConstVal()

template<typename T >
T gem5::GPUExecContext::readConstVal ( int  opIdx) const
inline

Definition at line 55 of file gpu_exec_context.hh.

References gpuISA.

◆ readMiscReg()

RegVal gem5::GPUExecContext::readMiscReg ( int  opIdx) const

Definition at line 58 of file gpu_exec_context.cc.

References gpuISA.

◆ wavefront()

Wavefront * gem5::GPUExecContext::wavefront ( )

Definition at line 52 of file gpu_exec_context.cc.

References wf.

Referenced by gem5::GPUDynInst::GPUDynInst(), and gem5::GPUDynInst::resolveFlatSegment().

◆ writeMiscReg()

void gem5::GPUExecContext::writeMiscReg ( int  opIdx,
RegVal  operandVal 
)

Definition at line 65 of file gpu_exec_context.cc.

References gpuISA, and gem5::X86ISA::val.

Member Data Documentation

◆ cu

ComputeUnit* gem5::GPUExecContext::cu
protected

◆ gpuISA

TheGpuISA::GPUISA* gem5::GPUExecContext::gpuISA
protected

Definition at line 66 of file gpu_exec_context.hh.

Referenced by readConstVal(), readMiscReg(), and writeMiscReg().

◆ wf

Wavefront* gem5::GPUExecContext::wf
protected

Definition at line 65 of file gpu_exec_context.hh.

Referenced by wavefront().


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

Generated on Tue Sep 21 2021 12:27:39 for gem5 by doxygen 1.8.17