From: Richard Henderson Date: Tue, 18 Feb 2025 16:26:40 +0000 (-0800) Subject: target/mips: Use VADDR_PRIx for logging pc_next X-Git-Tag: pull-xen-20250310~31^2~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a630055df39e1960275d0e273af036f794b15662;p=people%2Faperard%2Fqemu-dm.git target/mips: Use VADDR_PRIx for logging pc_next DisasContextBase.pc_next has type vaddr; use the correct log format. Fixes: 85c19af63e7 ("include/exec: Use vaddr in DisasContextBase for virtual addresses") Signed-off-by: Richard Henderson --- diff --git a/target/mips/tcg/octeon_translate.c b/target/mips/tcg/octeon_translate.c index e25c4cbaa0..d9eb43716e 100644 --- a/target/mips/tcg/octeon_translate.c +++ b/target/mips/tcg/octeon_translate.c @@ -18,8 +18,8 @@ static bool trans_BBIT(DisasContext *ctx, arg_BBIT *a) TCGv p; if (ctx->hflags & MIPS_HFLAG_BMASK) { - LOG_DISAS("Branch in delay / forbidden slot at PC 0x" - TARGET_FMT_lx "\n", ctx->base.pc_next); + LOG_DISAS("Branch in delay / forbidden slot at PC 0x%" VADDR_PRIx "\n", + ctx->base.pc_next); generate_exception_end(ctx, EXCP_RI); return true; }