Simplified set selection adjustment for the cache lock down
This commit is contained in:
parent
caa90dd5ac
commit
1dc15a0d07
14
src/CP15.cpp
14
src/CP15.cpp
|
@ -406,11 +406,7 @@ void ARMv5::ICacheLookup(u32 addr)
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
u8 minSet = ICacheLockDown & (ICACHE_SETS-1);
|
u8 minSet = ICacheLockDown & (ICACHE_SETS-1);
|
||||||
if (minSet)
|
line = line | minSet;
|
||||||
{
|
|
||||||
// part of the cache is locked up and only the cachelines
|
|
||||||
line = (line % (ICACHE_SETS - minSet)) + minSet;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -518,12 +514,8 @@ void ARMv5::DCacheLookup(u32 addr)
|
||||||
line = DCacheLockDown & (DCACHE_SETS-1);
|
line = DCacheLockDown & (DCACHE_SETS-1);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
u8 minSet = DCacheLockDown & (DCACHE_SETS-1);
|
u8 minSet = ICacheLockDown & (DCACHE_SETS-1);
|
||||||
if (minSet)
|
line = line | minSet;
|
||||||
{
|
|
||||||
// part of the cache is locked up and only the cachelines
|
|
||||||
line = (line % (DCACHE_SETS - minSet)) + minSet;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue