base_set_assoc.cc (10693:c0979b2ebda5) base_set_assoc.cc (10815:169af9a2779f)
1/*
2 * Copyright (c) 2012-2013 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

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

114
115BaseSetAssoc::~BaseSetAssoc()
116{
117 delete [] dataBlks;
118 delete [] blks;
119 delete [] sets;
120}
121
1/*
2 * Copyright (c) 2012-2013 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

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

114
115BaseSetAssoc::~BaseSetAssoc()
116{
117 delete [] dataBlks;
118 delete [] blks;
119 delete [] sets;
120}
121
122BaseSetAssoc::BlkType*
122CacheBlk*
123BaseSetAssoc::findBlock(Addr addr, bool is_secure) const
124{
125 Addr tag = extractTag(addr);
126 unsigned set = extractSet(addr);
127 BlkType *blk = sets[set].findBlk(tag, is_secure);
128 return blk;
129}
130

--- 69 unchanged lines hidden ---
123BaseSetAssoc::findBlock(Addr addr, bool is_secure) const
124{
125 Addr tag = extractTag(addr);
126 unsigned set = extractSet(addr);
127 BlkType *blk = sets[set].findBlk(tag, is_secure);
128 return blk;
129}
130

--- 69 unchanged lines hidden ---