base_set_assoc.hh (12600:e670dd17c8cf) | base_set_assoc.hh (12629:c17d4dc2379e) |
---|---|
1/* 2 * Copyright (c) 2012-2014,2017 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 --- 62 unchanged lines hidden (view full) --- 71class BaseSetAssoc : public BaseTags 72{ 73 public: 74 /** Typedef the block type used in this tag store. */ 75 typedef CacheBlk BlkType; 76 /** Typedef the set type used in this tag store. */ 77 typedef CacheSet<CacheBlk> SetType; 78 | 1/* 2 * Copyright (c) 2012-2014,2017 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 --- 62 unchanged lines hidden (view full) --- 71class BaseSetAssoc : public BaseTags 72{ 73 public: 74 /** Typedef the block type used in this tag store. */ 75 typedef CacheBlk BlkType; 76 /** Typedef the set type used in this tag store. */ 77 typedef CacheSet<CacheBlk> SetType; 78 |
79 | |
80 protected: 81 /** The associativity of the cache. */ 82 const unsigned assoc; 83 /** The allocatable associativity of the cache (alloc mask). */ 84 unsigned allocAssoc; 85 86 /** The cache blocks. */ 87 std::vector<BlkType> blks; | 79 protected: 80 /** The associativity of the cache. */ 81 const unsigned assoc; 82 /** The allocatable associativity of the cache (alloc mask). */ 83 unsigned allocAssoc; 84 85 /** The cache blocks. */ 86 std::vector<BlkType> blks; |
88 /** The data blocks, 1 per cache block. */ 89 std::unique_ptr<uint8_t[]> dataBlks; | |
90 91 /** The number of sets in the cache. */ 92 const unsigned numSets; 93 94 /** Whether tags and data are accessed sequentially. */ 95 const bool sequentialAccess; 96 97 /** The cache sets. */ --- 256 unchanged lines hidden --- | 87 88 /** The number of sets in the cache. */ 89 const unsigned numSets; 90 91 /** Whether tags and data are accessed sequentially. */ 92 const bool sequentialAccess; 93 94 /** The cache sets. */ --- 256 unchanged lines hidden --- |