mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
MIPS TLB performance improvements, by Daniel Jacobowitz.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2220 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ec2309289d
commit
814b9a4749
6 changed files with 54 additions and 8 deletions
|
@ -46,7 +46,7 @@ static int map_address (CPUState *env, target_ulong *physical, int *prot,
|
|||
tlb_t *tlb;
|
||||
int i, n;
|
||||
|
||||
for (i = 0; i < MIPS_TLB_NB; i++) {
|
||||
for (i = 0; i < env->tlb_in_use; i++) {
|
||||
tlb = &env->tlb[i];
|
||||
/* Check ASID, virtual page number & size */
|
||||
if ((tlb->G == 1 || tlb->ASID == ASID) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue