[PATCH] RISC-V: Support ssctr/smctr extensions with frozen version 0.9.

Nelson Chu nelson@rivosinc.com
Wed Jun 12 07:34:24 GMT 2024


Yeah that makes sense, thanks.

Nelson

On Wed, Jun 12, 2024 at 3:10 PM Jan Beulich <jbeulich@suse.com> wrote:

> On 12.06.2024 05:56, Nelson Chu wrote:
> > --- a/opcodes/riscv-opc.c
> > +++ b/opcodes/riscv-opc.c
> > @@ -2126,13 +2126,14 @@ const struct riscv_opcode riscv_opcodes[] =
> >  {"hret",       0, INSN_CLASS_I, "",    MATCH_HRET, MASK_HRET,
> match_opcode, 0 },
> >  {"mret",       0, INSN_CLASS_I, "",    MATCH_MRET, MASK_MRET,
> match_opcode, 0 },
> >  {"dret",       0, INSN_CLASS_I, "",    MATCH_DRET, MASK_DRET,
> match_opcode, 0 },
> > -{"sfence.vm",  0, INSN_CLASS_I, "",    MATCH_SFENCE_VM, MASK_SFENCE_VM
> | MASK_RS1, match_opcode, 0 },
> > -{"sfence.vm",  0, INSN_CLASS_I, "s",   MATCH_SFENCE_VM, MASK_SFENCE_VM,
> match_opcode, 0 },
>
> Shouldn't you then also drop MATCH_SFENCE_VM, MASK_SFENCE_VM, and the
> DECLARE_INSN() using both?
>
> Jan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20240612/97785193/attachment-0001.htm>


More information about the Binutils mailing list