src/cpu/utils.hh
/**
 * Returns the address of the closest aligned fixed-size block to the given
 * address.
 * @param addr Input address.
 * @param block_size Block size in bytes.
 * @return Address of the closest aligned block.
 */
Returns the address of the closest aligned fixed-size block to the given
address.
@param addr Input address.
@param block_size Block size in bytes.
@return Address of the closest aligned block.
Returns the address of the closest aligned fixed - size block to the given address . @param addr Input address . @param block_size Block size in bytes . @return Address of the closest aligned block .
inline Addr
addrBlockAlign(Addr addr, Addr block_size)
{
    return addr & ~(block_size - 1);
}
inline Addr addrBlockAlign ( Addr addr , Addr block_size ) { return addr & ~ ( block_size - 1 ) ; }
Returns the address of the closest aligned fixed-size block to the given
 address.
Returns the address of the closest aligned fixed - size block to the given address .