Last change
on this file since 131 was
114,
checked in by rosiere, 15 years ago
|
1) Fix bug with previous commit
2) Add test libc
3) Change Dhrystone
|
-
Property svn:keywords set to
Id
|
File size:
797 bytes
|
Line | |
---|
1 | #include "../include/Cache_MultiLevel.h" |
---|
2 | #include <sstream> |
---|
3 | |
---|
4 | namespace environment { |
---|
5 | namespace cache { |
---|
6 | namespace cache_multilevel { |
---|
7 | |
---|
8 | uint32_t Cache_MultiLevel::update_access (Access cur_access) |
---|
9 | { |
---|
10 | // if (cur_access.last_nb_level > 0) |
---|
11 | { |
---|
12 | uint32_t latence = cur_access.latence; |
---|
13 | |
---|
14 | _cout(CACHE,"Cache_MultiLevel::update_access [%d] : latence : %d, last_nb_level : %d (nb_level : %d)\n",cur_access.num_port,latence,cur_access.last_nb_level,param->nb_level); |
---|
15 | |
---|
16 | for (uint32_t it = 0; it < cur_access.last_nb_level; it ++) |
---|
17 | { |
---|
18 | latence = hierarchy_cache [it]->update_latence (cur_access.num_port,latence); |
---|
19 | } |
---|
20 | // if (latence != 0) |
---|
21 | // { |
---|
22 | // _cout(CACHE,"after all update, latence must be null.\n"); |
---|
23 | // exit(1); |
---|
24 | // } |
---|
25 | } |
---|
26 | |
---|
27 | return cur_access.latence; |
---|
28 | } |
---|
29 | |
---|
30 | }; |
---|
31 | }; |
---|
32 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.