mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
target/ppc: 440 optimise tlbwe TLB flushing
Have 440 tlbwe flush only the range corresponding to the addresses covered by the software TLB entry being modified rather than the entire TLB. This matches what 4xx does. Tested-by: BALATON Zoltan <balaton@eik.bme.hu> Acked-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
@ -864,7 +864,7 @@ void helper_440_tlbwe(CPUPPCState *env, uint32_t word, target_ulong entry,
|
||||
|
||||
/* Invalidate previous TLB (if it's valid) */
|
||||
if (tlb->prot & PAGE_VALID) {
|
||||
tlb_flush(env_cpu(env));
|
||||
ppcemb_tlb_flush(env_cpu(env), tlb);
|
||||
}
|
||||
|
||||
switch (word) {
|
||||
|
Reference in New Issue
Block a user