RISCV: Support Zilsd and Zcmlsd extensions.

Palmer Dabbelt palmer@dabbelt.com
Mon Jul 22 23:35:20 GMT 2024


On Mon, 22 Jul 2024 02:06:23 PDT (-0700), sundongya@nucleisys.com wrote:
> This patch adds support for the Zilsd and Zcmlsd extension, Which is documented at   https://github.com/riscv/riscv-zilsd/releases/tag/v0.9.0 .
> Currently, the patch has been merged into https://github.com/nxp-auto-tools/binutils_zilsd by Edmar Wienskoski <edmar.wienskoski@NXP.com>.

The README says "Zclsd", but the patches say "Zcmlsd".  Not sure if 
they're different, or just different names.

Also: this is just "stable", which is generally meaningless in RISC-V 
land.  We usually wait until "frozen" before merging something -- we'll 
still review it, though (as Jan already has done some).


>
>
>
>
>
> bfd/ChangeLog:
>
>  
>
>         * bfd/elfxx-riscv.c (riscv_parse_check_conflicts):  “zcmlsd” conflict with the “c+f'/ zcf”extension.
>
>         (riscv_multi_subset_supports):Handle zilsd and zcmlsd.
>
>         (riscv_multi_subset_supports_ext): Handle zilsd and zcmlsd.
>
>  
>
> gas/ChangeLog:
>
>  
>
>         *gas/ config/tc-riscv.c (validate_riscv_insn):Add new operand Gd,Gt for zilsd.ld, zilsd.sd.
>         (riscv_ip): Ditto.
>  
>
> include/ChangeLog:
>
>  
>
>         * include/opcode/riscv.h (enum riscv_insn_class):Add INSN_CLASS_ZILSD and INSN_CLASS_ZCMLSD.
>
>  
>
> opcodes/ChangeLog:
>
>  
>
>         * opcode/riscv-dis.c (print_insn_args): Print zilsd instruction information.
>
>         * opecode/riscv-opc.c: Add zilsd and zcmlsd instructions.
>
>
>
> ---
>
>  bfd/elfxx-riscv.c      | 23 +++++++++++++++++++++--
>  gas/config/tc-riscv.c  | 35 +++++++++++++++++++++++++++++++++++
>  include/opcode/riscv.h |  2 ++
>  opcodes/riscv-dis.c    | 18 ++++++++++++++++++
>  opcodes/riscv-opc.c    | 12 ++++++++++++
>  5 files changed, 88 insertions(+), 2 deletions(-)
>
>
> Co-developed-by: SUN Dongya <sundongya@nucleisys.com>Co-developed-by: LIU Xu <liuxu@nucleisys.com>Co-developed-by: ZHAO Fujin <zhaofujin@nucleisys.com>Co-developed-by: Edmar Wienskoski <edmar.wienskoski@NXP.com>


More information about the Binutils mailing list