Last change
on this file since 127 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
|
Rev | Line | |
---|
[78] | 1 | #include "../include/Cache_MultiLevel.h" |
---|
| 2 | #include <sstream> |
---|
| 3 | |
---|
[80] | 4 | namespace environment { |
---|
[78] | 5 | namespace cache { |
---|
| 6 | namespace cache_multilevel { |
---|
| 7 | |
---|
| 8 | uint32_t Cache_MultiLevel::update_access (Access cur_access) |
---|
| 9 | { |
---|
[81] | 10 | // if (cur_access.last_nb_level > 0) |
---|
[78] | 11 | { |
---|
| 12 | uint32_t latence = cur_access.latence; |
---|
[81] | 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); |
---|
[78] | 15 | |
---|
[81] | 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 | } |
---|
[78] | 20 | // if (latence != 0) |
---|
| 21 | // { |
---|
[114] | 22 | // _cout(CACHE,"after all update, latence must be null.\n"); |
---|
[78] | 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.