gem5  v20.1.0.0
Public Member Functions | Protected Attributes | List of all members
GPUExecContext Class Reference

#include <gpu_exec_context.hh>

Inheritance diagram for GPUExecContext:
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 44 of file gpu_exec_context.hh.

Constructor & Destructor Documentation

◆ GPUExecContext()

GPUExecContext::GPUExecContext ( ComputeUnit _cu,
Wavefront _wf 
)

Definition at line 37 of file gpu_exec_context.cc.

Member Function Documentation

◆ computeUnit()

ComputeUnit * GPUExecContext::computeUnit ( )

Definition at line 43 of file gpu_exec_context.cc.

References cu.

Referenced by GPUDynInst::doApertureCheck(), and GPUDynInst::GPUDynInst().

◆ readConstVal()

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

Definition at line 52 of file gpu_exec_context.hh.

References gpuISA.

◆ readMiscReg()

RegVal GPUExecContext::readMiscReg ( int  opIdx) const

Definition at line 55 of file gpu_exec_context.cc.

References gpuISA.

◆ wavefront()

Wavefront * GPUExecContext::wavefront ( )

Definition at line 49 of file gpu_exec_context.cc.

References wf.

Referenced by GPUDynInst::resolveFlatSegment().

◆ writeMiscReg()

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

Definition at line 62 of file gpu_exec_context.cc.

References gpuISA, and X86ISA::val.

Member Data Documentation

◆ cu

ComputeUnit* GPUExecContext::cu
protected

◆ gpuISA

TheGpuISA::GPUISA* GPUExecContext::gpuISA
protected

Definition at line 63 of file gpu_exec_context.hh.

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

◆ wf

Wavefront* GPUExecContext::wf
protected

Definition at line 62 of file gpu_exec_context.hh.

Referenced by wavefront().


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

Generated on Wed Sep 30 2020 14:02:25 for gem5 by doxygen 1.8.17