Last change
on this file since 131 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:
479 bytes
|
Line | |
---|
1 | #include "../include/Cache_OneLevel.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace cache { |
---|
5 | namespace cache_onelevel { |
---|
6 | |
---|
7 | void Cache_OneLevel::update_lru (uint32_t familly, uint32_t num_associativity) |
---|
8 | { |
---|
9 | uint32_t current_lru = tag [familly][num_associativity].index_lru; |
---|
10 | |
---|
11 | for (uint32_t k = 0; k < param->associativity; k ++) |
---|
12 | if (tag [familly][k].index_lru < current_lru) |
---|
13 | tag [familly][k].index_lru ++; |
---|
14 | tag [familly][num_associativity].index_lru = 0; |
---|
15 | } |
---|
16 | }; |
---|
17 | }; |
---|
18 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.