22 #ifndef OTAWA_HARD_CONFIGURATION_CACHE_H
23 #define OTAWA_HARD_CONFIGURATION_CACHE_H
26 #include <elm/system/Path.h>
30 namespace elm {
namespace xom {
34 namespace otawa {
namespace hard {
69 #endif // OTAWA_HARD_CONFIGURATION_CACHE_H
The usual Feature class has as drawback to exhibit completely the processing of the feature and there...
Definition: SilentFeature.h:32
const Cache * dcache
Definition: CacheConfiguration.h:56
SERIALIZABLE(CacheConfiguration, FIELD(icache)&FIELD(dcache))
const Cache * icache
Definition: CacheConfiguration.h:56
static const CacheConfiguration NO_CACHE
Useful constant representing a configuration without cache.
Definition: CacheConfiguration.h:40
SilentFeature CACHE_CONFIGURATION_FEATURE
This feature ensures we have obtained the cache configuration of the system.
bool isHarvard(void) const
Check if the cache follows the Harvard architecture.
Definition: CacheConfiguration.h:52
This class contains the configuration of a level of cache of processor.
Definition: Cache.h:34
virtual ~CacheConfiguration(void)
Definition: hardware_CacheConfiguration.cpp:132
const Cache * dataCache(void) const
Get the data cache.
Definition: CacheConfiguration.h:48
CacheConfiguration(const Cache *inst_cache=0, const Cache *data_cache=0)
Build a new configuration from the passed cache.
Definition: hardware_CacheConfiguration.cpp:126
StringOption cache(command, 'c',"cache","used cache","path","")
string cacheName(const Cache *cache) const
Compute name of the cache.
Definition: hardware_CacheConfiguration.cpp:141
bool isUnified(void) const
Check if the cache ois unified.
Definition: CacheConfiguration.h:51
const Cache * instCache(void) const
Get the instruction cache.
Definition: CacheConfiguration.h:47
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
static CacheConfiguration * load(elm::xom::Element *element)
Load a cache configuration from the given element.
Definition: hardware_CacheConfiguration.cpp:87
FunAccessor< const Cache * > L1_ICACHE
Accessor on the instruction cache L1.
bool hasInstCache(void) const
Check if some instruction is available (in a harvard or an unified architecture). ...
Definition: CacheConfiguration.h:49
Identifier< const CacheConfiguration * > CACHE_CONFIGURATION
Current configuration.
Definition: Accessor.h:44
FunAccessor< const Cache * > L1_DCACHE
Accessor on the data cache L1.
This class represents the full configuration of caches of a processor.
Definition: CacheConfiguration.h:37
bool hasDataCache(void) const
Check if some data is available (in a harvard or an unified architecture).
Definition: CacheConfiguration.h:50