From: "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com>
To: 30832@debbugs.gnu.org
Subject: bug#30832: Please add support for new architecture "riscv64" (RISC-V 64 bits little-endian)
Date: Fri, 16 Mar 2018 00:25:38 +0100 [thread overview]
Message-ID: <CAPQ4b8nx=g6qYNHfjhi_mOsTU9jv-79jhQG5crntXnzXOV6Twg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 828 bytes --]
Hello,
Please add support for this architecture, simple patch attached (based
on guile-2.0, the most popular version in Debian).
The change is simply to add "riscv64" in the following location, the
arch name seems to be missing in:
http://git.savannah.gnu.org/cgit/guile.git/tree/module/system/base/target.scm#n74
Since it ends in -64, the pointer size should be detected correctly in
the current code.
I compiled this and ran the test suite successfully:
Totals for this test run:
passes: 40317
failures: 0
unexpected passes: 0
expected failures: 9
unresolved test cases: 571
untested test cases: 1
unsupported test cases: 10
errors: 0
If there's anything missing, please let me know.
Cheers.
--
Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>
[-- Attachment #2: riscv64.patch --]
[-- Type: text/x-patch, Size: 754 bytes --]
Index: guile-2.0-2.0.13+1/module/system/base/target.scm
===================================================================
--- guile-2.0-2.0.13+1.orig/module/system/base/target.scm
+++ guile-2.0-2.0.13+1/module/system/base/target.scm
@@ -65,7 +65,7 @@
(cond ((string-match "^i[0-9]86$" cpu)
(endianness little))
((member cpu '("x86_64" "ia64"
- "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha"))
+ "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha" "riscv64"))
(endianness little))
((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu"
"mips" "mips64" "m68k" "s390x"))
next reply other threads:[~2018-03-15 23:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-15 23:25 Manuel A. Fernandez Montecelo [this message]
2018-03-16 4:21 ` bug#30832: Please add support for new architecture "riscv64" (RISC-V 64 bits little-endian) Mark H Weaver
2018-03-16 10:07 ` Manuel A. Fernandez Montecelo
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPQ4b8nx=g6qYNHfjhi_mOsTU9jv-79jhQG5crntXnzXOV6Twg@mail.gmail.com' \
--to=manuel.montezelo@gmail.com \
--cc=30832@debbugs.gnu.org \
/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).