public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] RISC-V: Zicbo{m, p, z} adjustments to riscv_multi_subset_supports_ext()
Date: Fri, 14 Oct 2022 10:52:29 +0000 (GMT)	[thread overview]
Message-ID: <20221014105229.193EC3857C4D@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d2552ba3e08067a30a03e5770f6fd8bd33f6f798

commit d2552ba3e08067a30a03e5770f6fd8bd33f6f798
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Oct 14 12:52:16 2022 +0200

    RISC-V: Zicbo{m,p,z} adjustments to riscv_multi_subset_supports_ext()
    
    The lack thereof did caused gas to issue "internal: unreachable
    INSN_CLASS_*" errors when trying to assemble respective insns without
    the feature(s) enabled via e.g. ".option arch, ...". Of course a proper
    hint towards the missing extension then wasn't given either.

Diff:
---
 bfd/elfxx-riscv.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index f0c91cc97f7..c89b1e53e92 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -2445,6 +2445,12 @@ riscv_multi_subset_supports_ext (riscv_parse_subset_t *rps,
     {
     case INSN_CLASS_I:
       return "i";
+    case INSN_CLASS_ZICBOM:
+      return "zicbom";
+    case INSN_CLASS_ZICBOP:
+      return "zicbop";
+    case INSN_CLASS_ZICBOZ:
+      return "zicboz";
     case INSN_CLASS_ZICSR:
       return "zicsr";
     case INSN_CLASS_ZIFENCEI:

                 reply	other threads:[~2022-10-14 10:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20221014105229.193EC3857C4D@sourceware.org \
    --to=jbeulich@sourceware.org \
    --cc=bfd-cvs@sourceware.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).