Last change
on this file since 127 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:
365 bytes
|
Rev | Line | |
---|
[78] | 1 | #include "../include/Cache_OneLevel.h" |
---|
| 2 | |
---|
[80] | 3 | namespace environment { |
---|
[78] | 4 | namespace cache { |
---|
| 5 | namespace cache_onelevel { |
---|
| 6 | |
---|
| 7 | // return the index of the next victim |
---|
| 8 | uint32_t Cache_OneLevel::index_victim (uint32_t familly) |
---|
| 9 | { |
---|
| 10 | uint32_t victim = 0; |
---|
| 11 | while (tag [familly][victim].index_lru != (param->associativity-1)) |
---|
| 12 | victim ++; |
---|
| 13 | |
---|
| 14 | return victim; |
---|
| 15 | } |
---|
| 16 | }; |
---|
| 17 | }; |
---|
| 18 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.