Skip to content

Commit 2d673c3

Browse files
lanyanzhiMichael Tokarev
authored andcommitted
target/loongarch: fix a wrong print in cpu dump
description: loongarch_cpu_dump_state() want to dump all loongarch cpu state registers, but there is a tiny typographical error when printing "PRCFG2". Cc: [email protected] Signed-off-by: lanyanzhi <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Song Gao <[email protected]> Message-Id: <[email protected]> Signed-off-by: Song Gao <[email protected]> (cherry picked from commit 78f932e) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 453a7c4 commit 2d673c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/loongarch/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags)
710710
qemu_fprintf(f, "EENTRY=%016" PRIx64 "\n", env->CSR_EENTRY);
711711
qemu_fprintf(f, "PRCFG1=%016" PRIx64 ", PRCFG2=%016" PRIx64 ","
712712
" PRCFG3=%016" PRIx64 "\n",
713-
env->CSR_PRCFG1, env->CSR_PRCFG3, env->CSR_PRCFG3);
713+
env->CSR_PRCFG1, env->CSR_PRCFG2, env->CSR_PRCFG3);
714714
qemu_fprintf(f, "TLBRENTRY=%016" PRIx64 "\n", env->CSR_TLBRENTRY);
715715
qemu_fprintf(f, "TLBRBADV=%016" PRIx64 "\n", env->CSR_TLBRBADV);
716716
qemu_fprintf(f, "TLBRERA=%016" PRIx64 "\n", env->CSR_TLBRERA);

0 commit comments

Comments
 (0)