diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2023-05-30 15:28:07 +0200 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2023-06-10 10:19:24 -0300 |
commit | 728fbfb57be5f4a3089a01f5c6ed72e0618b49ae (patch) | |
tree | 7eb2bd1caf3f266906d9911678f0b12a06bdbd70 | |
parent | c29b070418c79fa8e09d17e4b52f3ffddd393764 (diff) | |
download | qemu-728fbfb57be5f4a3089a01f5c6ed72e0618b49ae.zip qemu-728fbfb57be5f4a3089a01f5c6ed72e0618b49ae.tar.gz qemu-728fbfb57be5f4a3089a01f5c6ed72e0618b49ae.tar.bz2 |
target/ppc: Remove single use function
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>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <302697d63d26caebefaeee1e45352145ebd0318a.1685448535.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
-rw-r--r-- | target/ppc/mmu_helper.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index 64e3043..c0c71a6 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; |