On 11/27/2026 2:32 PM, Brian Cain wrote:
> A bugfix and implementation of core dumps for hexagon linux-user and sysemu.
>
> "fix e_ehsize in ELF core headers" seemed like it might not be appropriate
> for -stable, so I've not specifically added it as a Cc/Fixes. Could it
> cause some incompatibility? Seems safer to just land it for future releases.
>
> In v2: replaced `if (!cpu->tlb)` with assertions in "dump vector and sys
> regs in cores" and "support ELF core dumps".
v2 is fully reviewed and will be included in a pull req after 12.0
development opens.
>
> v1: https://lore.kernel.org/qemu-devel/20261125194855.3154845-1-brian.cain@oss.qualcomm.com/
>
> Brian Cain (5):
> dump: fix e_ehsize in ELF core headers
> dump: let targets set e_flags in the ELF core header
> linux-user: let targets add notes to core dumps
> target/hexagon: support ELF core dumps
> target/hexagon: dump vector and sys regs in cores
>
> include/hw/hexagon/hexagon_tlb.h | 10 ++
> include/system/dump-arch.h | 1 +
> linux-user/hexagon/target_elf.h | 8 +
> linux-user/loader.h | 9 ++
> target/hexagon/core-dump.h | 89 +++++++++++
> target/hexagon/cpu.h | 2 +-
> target/hexagon/internal.h | 8 +
> dump/dump.c | 6 +-
> hw/hexagon/hexagon_tlb.c | 17 +++
> linux-user/elfload.c | 14 ++
> linux-user/hexagon/elfload.c | 14 ++
> target/hexagon/arch_dump.c | 125 ++++++++++++++++
> target/hexagon/core_notes.c | 243 +++++++++++++++++++++++++++++++
> target/hexagon/cpu.c | 17 ++-
> target/hexagon/meson.build | 2 +
> 15 files changed, 560 insertions(+), 5 deletions(-)
> create mode 100644 target/hexagon/core-dump.h
> create mode 100644 target/hexagon/arch_dump.c
> create mode 100644 target/hexagon/core_notes.c
>