[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH 09/11] target/arm: Reformat integer register du
From: |
Alex Bennée |
Subject: |
Re: [Qemu-stable] [PATCH 09/11] target/arm: Reformat integer register dump |
Date: |
Thu, 09 Aug 2018 11:12:45 +0100 |
User-agent: |
mu4e 1.1.0; emacs 26.1.50 |
Richard Henderson <address@hidden> writes:
> With PC, there are 33 registers. Three per line lines up nicely
> without overflowing 80 columns.
>
> Cc: address@hidden (3.0.1)
> Signed-off-by: Richard Henderson <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
> ---
> target/arm/translate-a64.c | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
> index 45a6c2a3aa..358f169c75 100644
> --- a/target/arm/translate-a64.c
> +++ b/target/arm/translate-a64.c
> @@ -137,14 +137,13 @@ void aarch64_cpu_dump_state(CPUState *cs, FILE *f,
> int el = arm_current_el(env);
> const char *ns_status;
>
> - cpu_fprintf(f, "PC=%016"PRIx64" SP=%016"PRIx64"\n",
> - env->pc, env->xregs[31]);
> - for (i = 0; i < 31; i++) {
> - cpu_fprintf(f, "X%02d=%016"PRIx64, i, env->xregs[i]);
> - if ((i % 4) == 3) {
> - cpu_fprintf(f, "\n");
> + cpu_fprintf(f, " PC=%016" PRIx64 " ", env->pc);
> + for (i = 0; i < 32; i++) {
> + if (i == 31) {
> + cpu_fprintf(f, " SP=%016" PRIx64 "\n", env->xregs[i]);
> } else {
> - cpu_fprintf(f, " ");
> + cpu_fprintf(f, "X%02d=%016" PRIx64 "%s", i, env->xregs[i],
> + (i + 2) % 3 ? " " : "\n");
> }
> }
--
Alex Bennée