public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Add Xtensa ESP chips support
@ 2022-10-22 12:51 Alexey Lapshin
  2022-10-22 12:53 ` [PATCH 1/5] bfd: xtensa: move common code from ld and gas Alexey Lapshin
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Alexey Lapshin @ 2022-10-22 12:51 UTC (permalink / raw)
  To: binutils; +Cc: Alexey Gerenkov, Ivan Grokhotkov, Anton Maklakov

Since ESP chips are getting more and more popular for developers I
would like to suggest these patches to consider to include Xtensa ESP
chips support for binutils and gdb.

The chips support was done in a not common binutils way. There are a
few reasons for that:
As I know, the Xtensa specific code for binutils and gdb is generated
with tools from Tensilica Inc.
To build binutils and gdb with other chip presets we need to override
some related files (https://github.com/espressif/xtensa-overlays).
To make it easy to integrate new chips I did refactor the code a bit to
make a possibility to just copy and paste Tensilica-generated files and
modify a few lines in a code to make it supported in binutils and gdb.

Please consider these changes to merge, I believe this could be a
pretty improvement to extend supported CPUs without using third-party
sources patches.

Alexey Lapshin (5):
  bfd: xtensa: move common code from ld and gas
  gas: xtensa: add endianness, loops, booleans options
  ld: xtensa: use default LD command line options to specify endianness
  gas: xtensa: add esp32, esp32s2, esp32s3 isa-modules options
  gdb: xtensa: add support for esp32, esp32s2, esp32s3 isa-modules

 bfd/Makefile.am                               |    10 +-
 bfd/Makefile.in                               |    15 +-
 bfd/configure                                 |     4 +-
 bfd/configure.ac                              |     4 +-
 bfd/elf32-xtensa.c                            |   126 +
 ...nsa-modules.c => xtensa-default-modules.c} |     2 +-
 bfd/xtensa-esp32-modules.c                    | 19191 +++++++
 bfd/xtensa-esp32s2-modules.c                  | 11671 +++++
 bfd/xtensa-esp32s3-modules.c                  | 43674 ++++++++++++++++
 bfd/xtensa-isa.c                              |    25 +-
 gas/config/tc-xtensa.c                        |    79 +-
 gas/config/tc-xtensa.h                        |     2 +-
 gas/config/xtensa-relax.c                     |     8 +-
 gdb/Makefile.in                               |    10 +-
 gdb/configure.tgt                             |     2 +-
 ...tensa-config.c => xtensa-config-default.c} |    66 +-
 gdb/xtensa-config-esp32.c                     |   389 +
 gdb/xtensa-config-esp32s2.c                   |   271 +
 gdb/xtensa-config-esp32s3.c                   |   496 +
 gdb/xtensa-tdep.c                             |    70 +-
 gdb/xtensa-tdep.h                             |     2 +-
 include/elf/xtensa.h                          |    22 +
 include/xtensa-isa.h                          |     8 +
 ld/emultempl/xtensaelf.em                     |   169 +-
 24 files changed, 76128 insertions(+), 188 deletions(-)
 rename bfd/{xtensa-modules.c => xtensa-default-modules.c} (99%)
 create mode 100644 bfd/xtensa-esp32-modules.c
 create mode 100644 bfd/xtensa-esp32s2-modules.c
 create mode 100644 bfd/xtensa-esp32s3-modules.c
 rename gdb/{xtensa-config.c => xtensa-config-default.c} (84%)
 create mode 100644 gdb/xtensa-config-esp32.c
 create mode 100644 gdb/xtensa-config-esp32s2.c
 create mode 100644 gdb/xtensa-config-esp32s3.c

-- 
2.34.1


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

end of thread, other threads:[~2022-10-31 16:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 12:51 [PATCH 0/5] Add Xtensa ESP chips support Alexey Lapshin
2022-10-22 12:53 ` [PATCH 1/5] bfd: xtensa: move common code from ld and gas Alexey Lapshin
2022-10-22 12:55 ` [PATCH 2/5] gas: xtensa: add endianness, loops, booleans options Alexey Lapshin
2022-10-22 12:56 ` [PATCH 3/5] ld: xtensa: use default LD command line options for endianness Alexey Lapshin
2022-10-22 13:54 ` [PATCH 4/5] gas: xtensa: add esp32, esp32s2, esp32s3 isa-modules options Alexey Lapshin
2022-10-22 13:56 ` [PATCH 5/5] gdb: xtensa: add support for esp32, esp32s2, esp32s3 isa-modules Alexey Lapshin
2022-10-25 19:13 ` [PATCH 0/5] Add Xtensa ESP chips support Max Filippov
2022-10-25 20:17   ` Alexey Lapshin
2022-10-27 15:39     ` Max Filippov
2022-10-27 19:39       ` Alexey Lapshin
2022-10-28 15:48         ` Max Filippov
2022-10-28 16:05           ` Max Filippov
2022-10-31  6:38             ` Alexey Lapshin
2022-10-31 16:10               ` Max Filippov

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).