Skip to content

Commit

Permalink
Merge pull request riscv-non-isa#419 from ved-rivos/0830
Browse files Browse the repository at this point in the history
fix lru search
  • Loading branch information
ved-rivos authored Aug 30, 2024
2 parents 962da37 + 82981d8 commit 25c7b4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iommu_ref_model/libiommu/src/iommu_atc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ cache_ioatc_dc(
for ( i = 0; i < DDT_CACHE_SIZE; i++ ) {
if ( ddt_cache[i].lru < lru ) {
replace = i;
lru = ddt_cache[i].lru;
}
}
}
Expand Down Expand Up @@ -67,6 +68,7 @@ cache_ioatc_pc(
for ( i = 0; i < PDT_CACHE_SIZE; i++ ) {
if ( pdt_cache[i].lru < lru ) {
replace = i;
lru = pdt_cache[i].lru;
}
}
}
Expand Down Expand Up @@ -111,6 +113,7 @@ cache_ioatc_iotlb(
for ( i = 0; i < TLB_SIZE; i++ ) {
if ( tlb[i].lru < lru ) {
replace = i;
lru = tlb[i].lru;
}
}
}
Expand Down

0 comments on commit 25c7b4f

Please sign in to comment.