Last change
on this file since 94 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | #include "../include/Cache_OneLevel.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace cache { |
---|
5 | namespace cache_onelevel { |
---|
6 | |
---|
7 | // Return hit (true) |
---|
8 | // uncache is to stocke the address on the cache |
---|
9 | type_rsp_cache_t Cache_OneLevel::access (uint32_t num_port, |
---|
10 | uint32_t address, |
---|
11 | uint32_t trdid, |
---|
12 | type_req_cache_t type, |
---|
13 | direction_req_cache_t dir) |
---|
14 | { |
---|
15 | // std::cout << "<Cache_Onelevel.access>" << std::endl |
---|
16 | // << " * num_port : " << num_port << std::endl |
---|
17 | // << " * address : " << std::hex << address << std::dec << std::endl |
---|
18 | // << " * trdid : " << trdid << std::endl |
---|
19 | // << " * type : " << type << std::endl |
---|
20 | // << " * direction : " << dir << std::endl; |
---|
21 | |
---|
22 | switch (type) |
---|
23 | { |
---|
24 | case UNCACHED : return access_uncached (num_port,address,trdid ); break; |
---|
25 | case INVALIDATE : return access_invalidate (num_port,address,trdid ); break; |
---|
26 | case FLUSH : return access_flush (num_port,address,trdid ); break; |
---|
27 | case PREFETCH : // no difference with the simple read cached (have no add a prefetch cache) |
---|
28 | case CACHED : return access_cached (num_port,address,trdid,dir); break; |
---|
29 | default : std::cout << "<Cache_Onelevel.access> unknow type : " << std::endl; exit(1); break; |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | }; |
---|
34 | }; |
---|
35 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.