First post, by M-HT
M-HT
Offline
Rank
Member
Hi,
I found a minor bug in the file include/paging.h.
In the function get_tlb_entry the line:
if (TLB_BANKS && (index > TLB_SIZE)) {
should be:
if (TLB_BANKS && (index >= TLB_SIZE)) {
because when index == TLB_SIZE, then paging.tlbh[index] is out of bounds of tlbh (the definition is: tlb_entry tlbh[TLB_SIZE]; ).