gem5
v20.1.0.0
|
#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... | |
|
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.
|
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.