From: Alexey Lapshin <alexey.lapshin@espressif.com>
To: "binutils@sourceware.org" <binutils@sourceware.org>
Cc: Alexey Gerenkov <alexey.gerenkov@espressif.com>,
Ivan Grokhotkov <ivan@espressif.com>,
Anton Maklakov <anton.maklakov@espressif.com>
Subject: [PATCH 0/5] Add Xtensa ESP chips support
Date: Sat, 22 Oct 2022 12:51:12 +0000 [thread overview]
Message-ID: <94fd668465b77e94f3c000982c694e7da8f828f1.camel@espressif.com> (raw)
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
next reply other threads:[~2022-10-22 12:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-22 12:51 Alexey Lapshin [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94fd668465b77e94f3c000982c694e7da8f828f1.camel@espressif.com \
--to=alexey.lapshin@espressif.com \
--cc=alexey.gerenkov@espressif.com \
--cc=anton.maklakov@espressif.com \
--cc=binutils@sourceware.org \
--cc=ivan@espressif.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).