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:
committed by
Daniel Carvalho
parent
3341bccfe2
commit
7ed25a91c2
1
src/mem/cache/SConscript
vendored
1
src/mem/cache/SConscript
vendored
@@ -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')
|
||||
|
||||
|
||||
1
src/mem/cache/tags/SConscript
vendored
1
src/mem/cache/tags/SConscript
vendored
@@ -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')
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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__
|
||||
2
src/mem/cache/tags/sector_tags.hh
vendored
2
src/mem/cache/tags/sector_tags.hh
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user