[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 5/6] target/ppc: 440 optimise tlbwe TLB flushing
From: |
Nicholas Piggin |
Subject: |
[RFC PATCH 5/6] target/ppc: 440 optimise tlbwe TLB flushing |
Date: |
Tue, 14 Nov 2023 22:38:03 +1000 |
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.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
target/ppc/mmu_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c
index 923779d052..ba965f1779 100644
--- a/target/ppc/mmu_helper.c
+++ b/target/ppc/mmu_helper.c
@@ -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) {
--
2.42.0
- [RFC PATCH 0/6] target/ppc: Improve 4xx and 440 tlbwe, Nicholas Piggin, 2023/11/14
- [RFC PATCH 1/6] target/ppc: Fix 440 tlbwe TLB invalidation gaps, Nicholas Piggin, 2023/11/14
- [RFC PATCH 2/6] target/ppc: Factor out 4xx ppcemb_tlb_t flushing, Nicholas Piggin, 2023/11/14
- [RFC PATCH 3/6] target/ppc: 4xx don't flush TLB for a newly written software TLB entry, Nicholas Piggin, 2023/11/14
- [RFC PATCH 4/6] target/ppc: 4xx optimise tlbwe_lo TLB flushing, Nicholas Piggin, 2023/11/14
- [RFC PATCH 5/6] target/ppc: 440 optimise tlbwe TLB flushing,
Nicholas Piggin <=
- [RFC PATCH 6/6] target/ppc: optimise ppcemb_tlb_t flushing, Nicholas Piggin, 2023/11/14
- Re: [RFC PATCH 0/6] target/ppc: Improve 4xx and 440 tlbwe, BALATON Zoltan, 2023/11/15