Added TLB miss penalties.
This commit is contained in:
parent
faec4da733
commit
80add6415c
1 changed files with 4 additions and 0 deletions
|
|
@ -767,6 +767,8 @@ void addreadlookup(uint32_t virt, uint32_t phys)
|
||||||
readlookupp[readlnext]=mmu_perm;
|
readlookupp[readlnext]=mmu_perm;
|
||||||
readlookup[readlnext++]=virt>>12;
|
readlookup[readlnext++]=virt>>12;
|
||||||
readlnext&=(cachesize-1);
|
readlnext&=(cachesize-1);
|
||||||
|
|
||||||
|
cycles -= 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
void addwritelookup(uint32_t virt, uint32_t phys)
|
void addwritelookup(uint32_t virt, uint32_t phys)
|
||||||
|
|
@ -817,6 +819,8 @@ void addwritelookup(uint32_t virt, uint32_t phys)
|
||||||
writelookupp[writelnext] = mmu_perm;
|
writelookupp[writelnext] = mmu_perm;
|
||||||
writelookup[writelnext++] = virt >> 12;
|
writelookup[writelnext++] = virt >> 12;
|
||||||
writelnext &= (cachesize - 1);
|
writelnext &= (cachesize - 1);
|
||||||
|
|
||||||
|
cycles -= 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef printf
|
#undef printf
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue