On Mon, 26 Jun 2023 at 16:48, Richard Henderson
<richard.hender...@linaro.org> wrote:
>
> From: Anton Johansson <a...@rev.ng>
>
> Signed-off-by: Anton Johansson <a...@rev.ng>
> Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
> Message-Id: <20230621135633.1649-7-a...@rev.ng>
> Signed-off-by: Richard Henderson <richard.hender...@linaro.org>


> -static void log_cpu_exec(target_ulong pc, CPUState *cpu,
> +static void log_cpu_exec(vaddr pc, CPUState *cpu,
>                           const TranslationBlock *tb)
>  {
>      if (qemu_log_in_addr_range(pc)) {
>          qemu_log_mask(CPU_LOG_EXEC,
>                        "Trace %d: %p [%08" PRIx64
> -                      "/" TARGET_FMT_lx "/%08x/%08x] %s\n",
> +                      "/%" VADDR_PRIx "/%08x/%08x] %s\n",
>                        cpu->cpu_index, tb->tc.ptr, tb->cs_base, pc,
>                        tb->flags, tb->cflags, lookup_symbol(pc));

This again has lost the zero-padding. I noticed this one because
I have a workflow where I post-process these log files to
extract the executed PC values.

We've also lost the "PC is padded to the appropriate size
depending on whether this is a 32-bit or 64-bit guest CPU",
which is a bit of a shame.

thanks
-- PMM

Reply via email to