diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2023-07-03 12:10:47 +0200 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2023-07-03 18:17:59 +0800 |
commit | 704b30cbb2beeac1e90c4ee6f1f5b9f1dc2e5ee4 (patch) | |
tree | b05368971f51c38351e0044d3b9199254bc75e02 /bfd/elfxx-riscv.c | |
parent | d501d384886673b7c3981fe225b2d7719440abda (diff) | |
download | gdb-704b30cbb2beeac1e90c4ee6f1f5b9f1dc2e5ee4.zip gdb-704b30cbb2beeac1e90c4ee6f1f5b9f1dc2e5ee4.tar.gz gdb-704b30cbb2beeac1e90c4ee6f1f5b9f1dc2e5ee4.tar.bz2 |
RISC-V: Zvkh[a,b]: Remove individual instruction class
Currently we have three instruction classes defined for Zvkh[a,b]:
- INSN_CLASS_ZVKNHA
- INSN_CLASS_ZVKNHB
- INSN_CLASS_ZVKNHA_OR_ZVKNHB
The encodings of all instructions in Zvknh[a,b] are identical.
Therefore, we don't need the individual instruction classes
and can remove them.
This patch also adds the missing support of the combined instruction
class in riscv_multi_subset_supports_ext().
Fixes: 62edb233ef5 ("RISC-V: Add support for the Zvknh[a,b] ISA extensions")
Reported-By: Nelson Chu <nelson@rivosinc.com>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'bfd/elfxx-riscv.c')
-rw-r--r-- | bfd/elfxx-riscv.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index d6c8e04..bdfc0ef 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -2479,10 +2479,6 @@ riscv_multi_subset_supports (riscv_parse_subset_t *rps, return riscv_subset_supports (rps, "zvkg"); case INSN_CLASS_ZVKNED: return riscv_subset_supports (rps, "zvkned"); - case INSN_CLASS_ZVKNHA: - return riscv_subset_supports (rps, "zvknha"); - case INSN_CLASS_ZVKNHB: - return riscv_subset_supports (rps, "zvknhb"); case INSN_CLASS_ZVKNHA_OR_ZVKNHB: return (riscv_subset_supports (rps, "zvknha") || riscv_subset_supports (rps, "zvknhb")); @@ -2686,10 +2682,8 @@ riscv_multi_subset_supports_ext (riscv_parse_subset_t *rps, return _("zvkg"); case INSN_CLASS_ZVKNED: return _("zvkned"); - case INSN_CLASS_ZVKNHA: - return _("zvknha"); - case INSN_CLASS_ZVKNHB: - return _("zvknhb"); + case INSN_CLASS_ZVKNHA_OR_ZVKNHB: + return _("zvknha' or `zvknhb"); case INSN_CLASS_ZVKSED: return _("zvksed"); case INSN_CLASS_ZVKSH: |