sector_blk.hh (13473:ba87e4c95508) | sector_blk.hh (13938:14f80b6b37c1) |
---|---|
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; --- 35 unchanged lines hidden (view full) --- 44class SectorBlk; 45 46/** 47 * A sector is composed of sub-blocks, and each sub-block has information 48 * regarding its sector and a pointer to its sector tag. 49 */ 50class SectorSubBlk : public CacheBlk 51{ | 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; --- 35 unchanged lines hidden (view full) --- 44class SectorBlk; 45 46/** 47 * A sector is composed of sub-blocks, and each sub-block has information 48 * regarding its sector and a pointer to its sector tag. 49 */ 50class SectorSubBlk : public CacheBlk 51{ |
52 private: | 52 protected: |
53 /** 54 * Sector block associated to this block. 55 */ 56 SectorBlk* _sectorBlk; 57 58 /** 59 * The offset of this sub-block in the sector. 60 */ --- 78 unchanged lines hidden (view full) --- 139}; 140 141/** 142 * A Basic Sector block. 143 * Contains the tag and a list of blocks associated to this sector. 144 */ 145class SectorBlk : public ReplaceableEntry 146{ | 53 /** 54 * Sector block associated to this block. 55 */ 56 SectorBlk* _sectorBlk; 57 58 /** 59 * The offset of this sub-block in the sector. 60 */ --- 78 unchanged lines hidden (view full) --- 139}; 140 141/** 142 * A Basic Sector block. 143 * Contains the tag and a list of blocks associated to this sector. 144 */ 145class SectorBlk : public ReplaceableEntry 146{ |
147 private: | 147 protected: |
148 /** 149 * Sector tag value. A sector's tag is the tag of all its sub-blocks. 150 */ 151 Addr _tag; 152 153 /** 154 * Counter of the number of valid sub-blocks. The sector is valid if any 155 * of its sub-blocks is valid. --- 64 unchanged lines hidden --- | 148 /** 149 * Sector tag value. A sector's tag is the tag of all its sub-blocks. 150 */ 151 Addr _tag; 152 153 /** 154 * Counter of the number of valid sub-blocks. The sector is valid if any 155 * of its sub-blocks is valid. --- 64 unchanged lines hidden --- |