mem-cache: Move sector_blks to tags folder

Move sector_blks.hh and sector_blks.cc to the tags folder,
as its usage scope is restricted to the tags, and caches
should not be aware of them.

Change-Id: Ia7a71f51ec251d827872daf108c87da543a0ba57
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/13417
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
This commit is contained in:
Daniel R. Carvalho
2018-10-11 14:31:56 +02:00
committed by Daniel Carvalho
parent 3341bccfe2
commit 7ed25a91c2
5 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,6 @@ Source('cache_blk.cc')
Source('mshr.cc')
Source('mshr_queue.cc')
Source('noncoherent_cache.cc')
Source('sector_blk.cc')
Source('write_queue.cc')
Source('write_queue_entry.cc')

View File

@@ -35,4 +35,5 @@ SimObject('Tags.py')
Source('base.cc')
Source('base_set_assoc.cc')
Source('fa_lru.cc')
Source('sector_blk.cc')
Source('sector_tags.cc')

View File

@@ -33,7 +33,7 @@
* sequence of cache blocks that may or may not be present in the cache.
*/
#include "mem/cache/sector_blk.hh"
#include "mem/cache/tags/sector_blk.hh"
#include <cassert>

View File

@@ -33,8 +33,8 @@
* sequence of cache blocks that may or may not be present in the cache.
*/
#ifndef __MEM_CACHE_SECTOR_BLK_HH__
#define __MEM_CACHE_SECTOR_BLK_HH__
#ifndef __MEM_CACHE_TAGS_SECTOR_BLK_HH__
#define __MEM_CACHE_TAGS_SECTOR_BLK_HH__
#include <vector>
@@ -175,4 +175,4 @@ class SectorBlk : public ReplaceableEntry
Addr getTag() const;
};
#endif //__MEM_CACHE_SECTOR_BLK_HH__
#endif //__MEM_CACHE_TAGS_SECTOR_BLK_HH__

View File

@@ -39,8 +39,8 @@
#include <string>
#include <vector>
#include "mem/cache/sector_blk.hh"
#include "mem/cache/tags/base.hh"
#include "mem/cache/tags/sector_blk.hh"
#include "params/SectorTags.hh"
class BaseCache;