gem5  v20.1.0.0
Functions
gpu_mem_helpers.hh File Reference
#include "arch/gcn3/insts/gpu_static_inst.hh"
#include "arch/gcn3/insts/op_encodings.hh"
#include "debug/GPUMem.hh"
#include "gpu-compute/gpu_dyn_inst.hh"

Go to the source code of this file.

Functions

template<typename T , int N>
void initMemReqHelper (GPUDynInstPtr gpuDynInst, MemCmd mem_req_type, bool is_atomic=false)
 Helper function for instructions declared in op_encodings. More...
 
template<typename T , int N>
void initMemReqScalarHelper (GPUDynInstPtr gpuDynInst, MemCmd mem_req_type)
 Helper function for scalar instructions declared in op_encodings. More...
 

Function Documentation

◆ initMemReqHelper()

template<typename T , int N>
void initMemReqHelper ( GPUDynInstPtr  gpuDynInst,
MemCmd  mem_req_type,
bool  is_atomic = false 
)
inline

Helper function for instructions declared in op_encodings.

This function takes in all of the arguments for a given memory request we are trying to initialize, then submits the request or requests depending on if the original request is aligned or unaligned.

the base address of the cache line where the the last byte of the request will be stored.

if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.

Definition at line 52 of file gpu_mem_helpers.hh.

References Packet::dataStatic(), DPRINTF, Gcn3ISA::NumVecElemPerVecReg(), roundDown(), and MipsISA::vaddr.

◆ initMemReqScalarHelper()

template<typename T , int N>
void initMemReqScalarHelper ( GPUDynInstPtr  gpuDynInst,
MemCmd  mem_req_type 
)
inline

Helper function for scalar instructions declared in op_encodings.

This function takes in all of the arguments for a given memory request we are trying to initialize, then submits the request or requests depending on if the original request is aligned or unaligned.

the base address of the cache line where the the last byte of the request will be stored.

if the base cache line address of the last byte is greater than the address of the first byte then we have a misaligned access.

Definition at line 140 of file gpu_mem_helpers.hh.

References Packet::dataStatic(), DPRINTF, roundDown(), and MipsISA::vaddr.


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