public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/31681] New: [powerpc] presence of SPE disables VLE instruction decoding
@ 2024-04-24 13:33 Tadej.Pecar@elaphe-ev.com
  2024-04-24 19:37 ` [Bug tdep/31681] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tadej.Pecar@elaphe-ev.com @ 2024-04-24 13:33 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31681

            Bug ID: 31681
           Summary: [powerpc] presence of SPE disables VLE instruction
                    decoding
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: Tadej.Pecar@elaphe-ev.com
  Target Milestone: ---

On embedded PowerPC platforms with VLE instruction set (powerpc:vle) the
presence of SPE APU extension overrides the actual architecture to
powerpc:e500.

The architecture is detected correctly as `powerpc:vle` in bfd from compiler
provided section flags (check performed by `_bfd_elf_ppc_set_arch()` at
elf32-ppc.c )

`rs6000_gdbarch_init()` at rs6000-tdep.c then manually parses the apuinfo
section to determine if SPE APU is present and overrides the detected
architecture.

`info->abfd->archinfo` and `info->bfd_arch_info` are out of sync as a result of
this and may be source of additional bugs.

Even after user overrides to `powerpc:vle` the `maint print arch` displays `
bfd_arch_info = powerpc:e500` and the disassembler doesn't properly parse the
instructions (treating them as non-VLE).

The VLE + SPE combination is possible on e200z3/4/6/7 cores (MPC5777C, MPC5775K
being the concrete examples).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-04-24 20:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-24 13:33 [Bug tdep/31681] New: [powerpc] presence of SPE disables VLE instruction decoding Tadej.Pecar@elaphe-ev.com
2024-04-24 19:37 ` [Bug tdep/31681] " tromey at sourceware dot org
2024-04-24 19:47 ` Tadej.Pecar@elaphe-ev.com
2024-04-24 20:16 ` Tadej.Pecar@elaphe-ev.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).