src/cpu/utils.hh
/**
 * Calculates the offset of a given address wrt aligned fixed-size blocks.
 * @param addr Input address.
 * @param block_size Block size in bytes.
 * @return Offset of the given address in bytes.
 */
Calculates the offset of a given address wrt aligned fixed-size blocks.
@param addr Input address.
@param block_size Block size in bytes.
@return Offset of the given address in bytes.
Calculates the offset of a given address wrt aligned fixed - size blocks . @param addr Input address . @param block_size Block size in bytes . @return Offset of the given address in bytes .
inline Addr
addrBlockOffset(Addr addr, Addr block_size)
{
    return addr & (block_size - 1);
}
inline Addr addrBlockOffset ( Addr addr , Addr block_size ) { return addr & ( block_size - 1 ) ; }
Calculates the offset of a given address wrt aligned fixed-size blocks.
Calculates the offset of a given address wrt aligned fixed - size blocks .