sector_tags.hh (13378:038ea95fd793) sector_tags.hh (13418:08101e89101e)
1/*
2 * Copyright (c) 2018 Inria
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 104 unchanged lines hidden (view full) ---

113 *
114 * @param blk The block to invalidate.
115 */
116 void invalidate(CacheBlk *blk) override;
117
118 /**
119 * Access block and update replacement data. May not succeed, in which
120 * case nullptr is returned. This has all the implications of a cache
1/*
2 * Copyright (c) 2018 Inria
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 104 unchanged lines hidden (view full) ---

113 *
114 * @param blk The block to invalidate.
115 */
116 void invalidate(CacheBlk *blk) override;
117
118 /**
119 * Access block and update replacement data. May not succeed, in which
120 * case nullptr is returned. This has all the implications of a cache
121 * access and should only be used as such. Returns the access latency
121 * access and should only be used as such. Returns the tag lookup latency
122 * as a side effect.
123 *
124 * @param addr The address to find.
125 * @param is_secure True if the target memory space is secure.
122 * as a side effect.
123 *
124 * @param addr The address to find.
125 * @param is_secure True if the target memory space is secure.
126 * @param lat The access latency.
126 * @param lat The latency of the tag lookup.
127 * @return Pointer to the cache block if found.
128 */
129 CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) override;
130
131 /**
132 * Insert the new block into the cache and update replacement data.
133 *
134 * @param addr Address of the block.

--- 69 unchanged lines hidden ---
127 * @return Pointer to the cache block if found.
128 */
129 CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) override;
130
131 /**
132 * Insert the new block into the cache and update replacement data.
133 *
134 * @param addr Address of the block.

--- 69 unchanged lines hidden ---