base_set_assoc.cc (12728:57bdea4f96aa) base_set_assoc.cc (12743:b5ccee582b40)
1/*
2 * Copyright (c) 2012-2014 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

121BaseSetAssoc::findBlock(Addr addr, bool is_secure) const
122{
123 Addr tag = extractTag(addr);
124 unsigned set = extractSet(addr);
125 BlkType *blk = sets[set].findBlk(tag, is_secure);
126 return blk;
127}
128
1/*
2 * Copyright (c) 2012-2014 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

121BaseSetAssoc::findBlock(Addr addr, bool is_secure) const
122{
123 Addr tag = extractTag(addr);
124 unsigned set = extractSet(addr);
125 BlkType *blk = sets[set].findBlk(tag, is_secure);
126 return blk;
127}
128
129CacheBlk*
129ReplaceableEntry*
130BaseSetAssoc::findBlockBySetAndWay(int set, int way) const
131{
132 return sets[set].blks[way];
133}
134
135BaseSetAssoc *
136BaseSetAssocParams::create()
137{
138 return new BaseSetAssoc(this);
139}
130BaseSetAssoc::findBlockBySetAndWay(int set, int way) const
131{
132 return sets[set].blks[way];
133}
134
135BaseSetAssoc *
136BaseSetAssocParams::create()
137{
138 return new BaseSetAssoc(this);
139}