On Thu, 28 Aug 2025 at 13:08, Richard Henderson
<[email protected]> wrote:
>
> The goal is to kill the massive target ifdef ladder in elfload.c.
>
> The functions get moved to linux-user/target/elfload.c.
> The macros get moved to linux-user/target/target_elf.h.
> These are mostly use to parameterize include/elf.h or elfload.c.
>
> The init_thread functions, storing into target_pt_regs, have been
> merged with target_cpu_copy_regs, copying out of target_pt_regs
> into CPUArchState.  Merging these found a few bits of silliness
> where pt_regs fields were initialized but not used.  To encourage
> this never to return, remove most target_pt_regs and hide the rest
> within the relevant signal.c.
>
> Changes for v3:
>   - 48 patches merged to master.
>   - Don't eliminate target_elf_gregset_t; instead:
>     - Convert the array to a struct, which can be declared abstract,
>     - Move ptrace-y structure to target_ptrace.h, if applicable.
>     - Use it to define target_elf_gregset_t.
>     This resolves Peter's primary objection to v2, which over-simplified
>     the interface to elf_core_copy_regs.  As an added benefit, cleans up
>     some other really ugly bits.

I think I've reviewed all of these patches now -- ping me
if I missed one.

thanks
-- PMM

Reply via email to