gem5
v20.1.0.0
|
#include "base/types.hh"
Go to the source code of this file.
Functions | |
Addr | addrBlockOffset (Addr addr, Addr block_size) |
Calculates the offset of a given address wrt aligned fixed-size blocks. More... | |
Addr | addrBlockAlign (Addr addr, Addr block_size) |
Returns the address of the closest aligned fixed-size block to the given address. More... | |
bool | transferNeedsBurst (Addr addr, unsigned int size, unsigned int block_size) |
Returns true if the given memory access (address, size) needs to be fragmented across aligned fixed-size blocks. More... | |
bool | isAnyActiveElement (const std::vector< bool >::const_iterator &it_start, const std::vector< bool >::const_iterator &it_end) |
Test if there is any active element in an enablement range. More... | |
Returns the address of the closest aligned fixed-size block to the given address.
addr | Input address. |
block_size | Block size in bytes. |
Definition at line 63 of file utils.hh.
References addr.
Referenced by LSQ< Impl >::SplitDataRequest::initiateTranslation().
Calculates the offset of a given address wrt aligned fixed-size blocks.
addr | Input address. |
block_size | Block size in bytes. |
Definition at line 50 of file utils.hh.
References addr.
Referenced by AtomicSimpleCPU::genMemFragmentRequest(), CheckerCPU::genMemFragmentRequest(), Minor::LSQ::SplitDataRequest::makeFragmentRequests(), and transferNeedsBurst().
|
inline |
Test if there is any active element in an enablement range.
Definition at line 86 of file utils.hh.
Referenced by LSQ< Impl >::LSQRequest::addRequest(), AtomicSimpleCPU::genMemFragmentRequest(), CheckerCPU::genMemFragmentRequest(), Minor::LSQ::SplitDataRequest::makeFragmentRequests(), and Minor::LSQ::SingleDataRequest::startAddrTranslation().
|
inline |
Returns true if the given memory access (address, size) needs to be fragmented across aligned fixed-size blocks.
addr | Address of the memory access. |
size | Size of the memory access. |
block_size | Block size in bytes. |
Definition at line 77 of file utils.hh.
References addr, and addrBlockOffset().
Referenced by Minor::LSQ::pushRequest(), and LSQ< Impl >::pushRequest().