target/mips: Use VADDR_PRIx for logging pc_next
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 18 Feb 2025 16:26:40 +0000 (08:26 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 18 Feb 2025 16:29:02 +0000 (08:29 -0800)
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 <richard.henderson@linaro.org>
target/mips/tcg/octeon_translate.c

index e25c4cbaa0647f179e98a1f388812135ece3b9a5..d9eb43716e2a522402db8db0066ecdbe5919f77e 100644 (file)
@@ -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;
     }