From 56ebd1409bd5065fdef170440d754cfbef6acc6d Mon Sep 17 00:00:00 2001 From: tkchia Date: Sat, 8 Jul 2023 19:50:09 +0000 Subject: [PATCH] plat/linuxppc/emu: get dump_state( ) to also dump FP registers --- plat/linuxppc/emu/emu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plat/linuxppc/emu/emu.c b/plat/linuxppc/emu/emu.c index 91ae87a8b..1cc17d1be 100644 --- a/plat/linuxppc/emu/emu.c +++ b/plat/linuxppc/emu/emu.c @@ -325,6 +325,12 @@ void dump_state(FILE* stream) fprintf(stream, "\n"); fprintf(stream, "gpr%02d=0x%08x ", i, cpu.gpr[i]); } + for (i=0; i<32; i++) + { + if ((i % 3) == 0) + fprintf(stream, "\n"); + fprintf(stream, "fpr%02d=0x%016lx ", i, cpu.fpr[i]); + } fprintf(stderr, "\n"); /* This might fail and cause a reentrant trap if cia is invalid, so