target/loongarch: 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 <richard.henderson@linaro.org>
This commit is contained in:
parent
252394c95b
commit
a0ea8654e5
@ -56,7 +56,7 @@ static bool gen_am(DisasContext *ctx, arg_rrr *a,
|
||||
if (a->rd != 0 && (a->rj == a->rd || a->rk == a->rd)) {
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"Warning: source register overlaps destination register"
|
||||
"in atomic insn at pc=0x" TARGET_FMT_lx "\n",
|
||||
"in atomic insn at pc=0x%" VADDR_PRIx "\n",
|
||||
ctx->base.pc_next - 4);
|
||||
return false;
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ static void loongarch_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
|
||||
|
||||
if (!decode(ctx, ctx->opcode)) {
|
||||
qemu_log_mask(LOG_UNIMP, "Error: unknown opcode. "
|
||||
TARGET_FMT_lx ": 0x%x\n",
|
||||
"0x%" VADDR_PRIx ": 0x%x\n",
|
||||
ctx->base.pc_next, ctx->opcode);
|
||||
generate_exception(ctx, EXCCODE_INE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user