[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/7] target/ppc: Remove single use function
From: |
BALATON Zoltan |
Subject: |
[PATCH 1/7] target/ppc: Remove single use function |
Date: |
Tue, 30 May 2023 15:28:07 +0200 (CEST) |
The get_physical_address() function is a trivial wrapper of
get_physical_address_wtlb() that is only used once. Remove it and call
get_physical_address_wtlb() directly instead.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
target/ppc/mmu_helper.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c
index 64e30435f5..c0c71a68ff 100644
--- a/target/ppc/mmu_helper.c
+++ b/target/ppc/mmu_helper.c
@@ -168,15 +168,6 @@ static void booke206_flush_tlb(CPUPPCState *env, int flags,
tlb_flush(env_cpu(env));
}
-static int get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx,
- target_ulong eaddr, MMUAccessType access_type,
- int type)
-{
- return get_physical_address_wtlb(env, ctx, eaddr, access_type, type, 0);
-}
-
-
-
/*****************************************************************************/
/* BATs management */
#if !defined(FLUSH_ALL_TLBS)
@@ -643,7 +634,7 @@ target_ulong helper_rac(CPUPPCState *env, target_ulong addr)
*/
nb_BATs = env->nb_BATs;
env->nb_BATs = 0;
- if (get_physical_address(env, &ctx, addr, 0, ACCESS_INT) == 0) {
+ if (get_physical_address_wtlb(env, &ctx, addr, 0, ACCESS_INT, 0) == 0) {
ret = ctx.raddr;
}
env->nb_BATs = nb_BATs;
--
2.30.9
- [PATCH 0/7] Embedded PPC misc clean up and optimisation, BALATON Zoltan, 2023/05/30
- [PATCH 1/7] target/ppc: Remove single use function,
BALATON Zoltan <=
- [PATCH 6/7] target/ppc: Change ppcemb_tlb_check() to return bool, BALATON Zoltan, 2023/05/30
- [PATCH 7/7] target/ppc: Eliminate goto in mmubooke_check_tlb(), BALATON Zoltan, 2023/05/30
- [PATCH 2/7] target/ppc: Remove "ext" parameter of ppcemb_tlb_check(), BALATON Zoltan, 2023/05/30
- [PATCH 5/7] target/ppc: Simplify ppcemb_tlb_search(), BALATON Zoltan, 2023/05/30
- [PATCH 4/7] target/ppc: Remove some unneded line breaks, BALATON Zoltan, 2023/05/30
- [PATCH 3/7] target/ppc: Move ppcemb_tlb_search() to mmu_common.c, BALATON Zoltan, 2023/05/30