[PATCH for-12.0 v2 0/5] dump, hexagon: add support for cores

Brian Cain posted 5 patches 4 hours ago
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
[PATCH for-12.0 v2 0/5] dump, hexagon: add support for cores
Posted by Brian Cain 4 hours ago
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".

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

-- 
2.34.1

Re: [PATCH for-12.0 v2 0/5] dump, hexagon: add support for cores
Posted by Brian Cain 4 hours ago
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
>