On 28.11.2024 12:10, Dongyan Chen wrote:
> --- a/gas/NEWS
> +++ b/gas/NEWS
> @@ -320,6 +320,10 @@ Changes in 2.38:
>
> * Add support for the RISC-V svinval extension, version 1.0.
>
> +* Add support for the RISC-V ssdbltrp extension, version 1.0.
> +
> +* Add support for the RISC-V smdbltrp extension, version 1.0.
> +
> * Add support for the RISC-V hypervisor extension, as defined by Privileged
> Specification 1.12.
Please move up to near the top of the file - you're not retrofitting this
to 2.38, after all.
> @@ -1149,6 +1151,12 @@ riscv_csr_address (const char *csr_name,
> is_h_required = (csr_class == CSR_CLASS_SSTC_AND_H
> || csr_class == CSR_CLASS_SSTC_AND_H_32);
> extension = "sstc";
> + break;
> + case CSR_CLASS_SSDBLTRP:
> + extension = "ssdbltrp";
> + break;
> + case CSR_CLASS_SMDBLTRP:
> + extension = "smdbltrp";
> break;
The case labels are mis-indented here; see ...
> case CSR_CLASS_DEBUG:
> break;
... ones adjacent.
Jan
@@ -1272,6 +1272,8 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] =
{"sstvala", "+zicsr", check_implicit_always},
{"sstvecd", "+zicsr", check_implicit_always},
{"ssu64xl", "+zicsr", check_implicit_always},
+ {"ssdbltrp", "+zicsr", check_implicit_always},
+ {"smdbltrp", "+zicsr", check_implicit_always},
{"svade", "+zicsr", check_implicit_always},
{"svadu", "+zicsr", check_implicit_always},
@@ -1458,6 +1460,8 @@ static struct riscv_supported_ext riscv_supported_std_s_ext[] =
{"sstvala", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"sstvecd", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"ssu64xl", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
+ {"ssdbltrp", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
+ {"smdbltrp", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"svade", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"svadu", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"svbare", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
@@ -320,6 +320,10 @@ Changes in 2.38:
* Add support for the RISC-V svinval extension, version 1.0.
+* Add support for the RISC-V ssdbltrp extension, version 1.0.
+
+* Add support for the RISC-V smdbltrp extension, version 1.0.
+
* Add support for the RISC-V hypervisor extension, as defined by Privileged
Specification 1.12.
@@ -102,6 +102,8 @@ enum riscv_csr_class
CSR_CLASS_SSTC_AND_H, /* Sstc only (with H) */
CSR_CLASS_SSTC_32, /* Sstc RV32 only */
CSR_CLASS_SSTC_AND_H_32, /* Sstc RV32 only (with H) */
+ CSR_CLASS_SSDBLTRP, /* Ssdbltrp only */
+ CSR_CLASS_SMDBLTRP, /* Smdbltrp only */
CSR_CLASS_XTHEADVECTOR, /* xtheadvector only */
};
@@ -1149,6 +1151,12 @@ riscv_csr_address (const char *csr_name,
is_h_required = (csr_class == CSR_CLASS_SSTC_AND_H
|| csr_class == CSR_CLASS_SSTC_AND_H_32);
extension = "sstc";
+ break;
+ case CSR_CLASS_SSDBLTRP:
+ extension = "ssdbltrp";
+ break;
+ case CSR_CLASS_SMDBLTRP:
+ extension = "smdbltrp";
break;
case CSR_CLASS_DEBUG:
break;
@@ -127,6 +127,8 @@ All available -march extensions for RISC-V:
sstvala 1.0
sstvecd 1.0
ssu64xl 1.0
+ ssdbltrp 1.0
+ smdbltrp 1.0
svade 1.0
svadu 1.0
svbare 1.0