On 8/2/25 03:45, Peter Maydell wrote:
On Wed, 30 Jul 2025 at 01:24, Richard Henderson
<richard.hender...@linaro.org> wrote:

Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
  linux-user/elfload.c                    | 41 +-----------------------
  linux-user/x86_64/target_coredump.c.inc | 42 +++++++++++++++++++++++++
  2 files changed, 43 insertions(+), 40 deletions(-)
  create mode 100644 linux-user/x86_64/target_coredump.c.inc


Maybe we can come back to this at some point to convert the
.c.inc into a proper .c / .h file.

Are you thinking of something like ELF_NREG + target_elf_gregset_t in the header and elf_core_copy_regs in the c file?

I suppose there's no reason not to do that now, putting the function in the new target/elfload.c, and the one or two declarations in target_elf.h.


r~

Reply via email to