All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] linux-user: write the x86 floating-point registers to a core dump
@ 2026-09-10  1:34 Matt Turner
  2026-09-10  1:34 ` [PATCH 1/3] target/i386: split the FNINIT out of do_fsave() Matt Turner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matt Turner @ 2026-09-10  1:34 UTC (permalink / raw)
  To: qemu-devel
  Cc: Helge Deller, Laurent Vivier, Paolo Bonzini, Pierrick Bouvier,
	Richard Henderson, Zhao Liu

Guest cores for i386 and x86_64 carried only the general-purpose
registers, so a debugger opening one reported the x87 stack, and on
x86_64 the SSE registers too, as unavailable.

These add HAVE_ELF_CORE_FPREGS for both, following the same shape as the
recent alpha, mips, riscv and sh4 conversions.  x86_64 can reuse
cpu_x86_fxsave() as-is; i386 needs the FSAVE image without the FNINIT
that FSAVE performs afterward, so the first patch splits that out.

The SSE registers are still missing from an i386 core: the kernel puts
those in a separate NT_PRXFPREG note, which the generic core dump code
has no support for.

Matt Turner (3):
  target/i386: split the FNINIT out of do_fsave()
  linux-user/i386: write the floating-point registers to a core dump
  linux-user/x86_64: write the floating-point registers to a core dump

 linux-user/i386/elfload.c      |  7 +++++++
 linux-user/i386/target_elf.h   | 18 ++++++++++++++++++
 linux-user/x86_64/elfload.c    | 11 +++++++++++
 linux-user/x86_64/target_elf.h | 20 ++++++++++++++++++++
 target/i386/cpu.h              |  2 ++
 target/i386/tcg/fpu_helper.c   | 13 +++++++++++--
 6 files changed, 69 insertions(+), 2 deletions(-)

-- 
2.54.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-10  1:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10  1:34 [PATCH 0/3] linux-user: write the x86 floating-point registers to a core dump Matt Turner
2026-09-10  1:34 ` [PATCH 1/3] target/i386: split the FNINIT out of do_fsave() Matt Turner
2026-09-10  1:34 ` [PATCH 2/3] linux-user/i386: write the floating-point registers to a core dump Matt Turner
2026-09-10  1:34 ` [PATCH 3/3] linux-user/x86_64: " Matt Turner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.