target-ppc: Fix target_ulong vs. hwaddr format mismatches
Since HWADDR_PRIx is always the same now, use %016 for TARGET_PPC64 and %08 for common code. This may slightly change the ppc64 debug output. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6bf0076643
commit
350ed2fcd9
@ -587,7 +587,7 @@ static inline int find_pte2(CPUPPCState *env, mmu_ctx_t *ctx, int is_64b, int h,
|
|||||||
}
|
}
|
||||||
|
|
||||||
r = pte64_check(ctx, pte0, pte1, h, rw, type);
|
r = pte64_check(ctx, pte0, pte1, h, rw, type);
|
||||||
LOG_MMU("Load pte from " TARGET_FMT_lx " => " TARGET_FMT_lx " "
|
LOG_MMU("Load pte from %016" HWADDR_PRIx " => " TARGET_FMT_lx " "
|
||||||
TARGET_FMT_lx " %d %d %d " TARGET_FMT_lx "\n",
|
TARGET_FMT_lx " %d %d %d " TARGET_FMT_lx "\n",
|
||||||
pteg_off + (i * 16), pte0, pte1, (int)(pte0 & 1), h,
|
pteg_off + (i * 16), pte0, pte1, (int)(pte0 & 1), h,
|
||||||
(int)((pte0 >> 1) & 1), ctx->ptem);
|
(int)((pte0 >> 1) & 1), ctx->ptem);
|
||||||
@ -602,7 +602,7 @@ static inline int find_pte2(CPUPPCState *env, mmu_ctx_t *ctx, int is_64b, int h,
|
|||||||
pte1 = ldl_phys(env->htab_base + pteg_off + (i * 8) + 4);
|
pte1 = ldl_phys(env->htab_base + pteg_off + (i * 8) + 4);
|
||||||
}
|
}
|
||||||
r = pte32_check(ctx, pte0, pte1, h, rw, type);
|
r = pte32_check(ctx, pte0, pte1, h, rw, type);
|
||||||
LOG_MMU("Load pte from " TARGET_FMT_lx " => " TARGET_FMT_lx " "
|
LOG_MMU("Load pte from %08" HWADDR_PRIx " => " TARGET_FMT_lx " "
|
||||||
TARGET_FMT_lx " %d %d %d " TARGET_FMT_lx "\n",
|
TARGET_FMT_lx " %d %d %d " TARGET_FMT_lx "\n",
|
||||||
pteg_off + (i * 8), pte0, pte1, (int)(pte0 >> 31), h,
|
pteg_off + (i * 8), pte0, pte1, (int)(pte0 >> 31), h,
|
||||||
(int)((pte0 >> 6) & 1), ctx->ptem);
|
(int)((pte0 >> 6) & 1), ctx->ptem);
|
||||||
@ -633,7 +633,7 @@ static inline int find_pte2(CPUPPCState *env, mmu_ctx_t *ctx, int is_64b, int h,
|
|||||||
}
|
}
|
||||||
if (good != -1) {
|
if (good != -1) {
|
||||||
done:
|
done:
|
||||||
LOG_MMU("found PTE at addr " TARGET_FMT_lx " prot=%01x ret=%d\n",
|
LOG_MMU("found PTE at addr %08" HWADDR_PRIx " prot=%01x ret=%d\n",
|
||||||
ctx->raddr, ctx->prot, ret);
|
ctx->raddr, ctx->prot, ret);
|
||||||
/* Update page flags */
|
/* Update page flags */
|
||||||
pte1 = ctx->raddr;
|
pte1 = ctx->raddr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user