From: Nelson Chu <nelson.chu@sifive.com>
To: Tsukasa OI <research_trasio@irq.a4lg.com>
Cc: Binutils <binutils@sourceware.org>
Subject: Re: [PATCH 3/6] RISC-V: Add Privileged Arch 1.12 CSR testcases
Date: Wed, 23 Feb 2022 14:58:43 +0800 [thread overview]
Message-ID: <CAJYME4H-aWX9PyGcko4FdgqRFEY_1HHJ-zeLyPBoZdR9w6pFWA@mail.gmail.com> (raw)
In-Reply-To: <57c1b579d294614b46907a563fc3eb83548ca9b6.1641898723.git.research_trasio@irq.a4lg.com>
Committed with previous one.
Thanks
Nelson
On Tue, Jan 11, 2022 at 7:02 PM Tsukasa OI via Binutils
<binutils@sourceware.org> wrote:
>
> This commit adds testcases for most CSRs added on the Privileged
> Architecture, version 1.12 (except moved "scontext" and
> new "mscontext").
>
> gas/ChangeLog:
>
> * testsuite/gas/riscv/csr-dw-regnums.s: Add new CSRs.
> * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
> * testsuite/gas/riscv/csr.s: Add new CSRs.
> * testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
> * testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
> * testsuite/gas/riscv/csr-version-1p10.d: Likewise.
> * testsuite/gas/riscv/csr-version-1p10.l: Likewise.
> * testsuite/gas/riscv/csr-version-1p11.d: Likewise.
> * testsuite/gas/riscv/csr-version-1p11.l: Likewise.
> * testsuite/gas/riscv/csr-version-1p12.d: Likewise.
> * testsuite/gas/riscv/csr-version-1p12.l: Likewise.
> ---
> gas/testsuite/gas/riscv/csr-dw-regnums.d | 69 +++++++++
> gas/testsuite/gas/riscv/csr-dw-regnums.s | 69 +++++++++
> gas/testsuite/gas/riscv/csr-version-1p10.d | 138 +++++++++++++++++
> gas/testsuite/gas/riscv/csr-version-1p10.l | 157 ++++++++++++++++++++
> gas/testsuite/gas/riscv/csr-version-1p11.d | 138 +++++++++++++++++
> gas/testsuite/gas/riscv/csr-version-1p11.l | 157 ++++++++++++++++++++
> gas/testsuite/gas/riscv/csr-version-1p12.d | 138 +++++++++++++++++
> gas/testsuite/gas/riscv/csr-version-1p12.l | 19 +++
> gas/testsuite/gas/riscv/csr-version-1p9p1.d | 138 +++++++++++++++++
> gas/testsuite/gas/riscv/csr-version-1p9p1.l | 157 ++++++++++++++++++++
> gas/testsuite/gas/riscv/csr.s | 69 +++++++++
> 11 files changed, 1249 insertions(+)
>
> diff --git a/gas/testsuite/gas/riscv/csr-dw-regnums.d b/gas/testsuite/gas/riscv/csr-dw-regnums.d
> index 2aa5ff4bcee..e4bb865ed3f 100644
> --- a/gas/testsuite/gas/riscv/csr-dw-regnums.d
> +++ b/gas/testsuite/gas/riscv/csr-dw-regnums.d
> @@ -95,6 +95,7 @@ Contents of the .* section:
> DW_CFA_offset_extended_sf: r4356 \(sie\) at cfa\+1040
> DW_CFA_offset_extended_sf: r4357 \(stvec\) at cfa\+1044
> DW_CFA_offset_extended_sf: r4358 \(scounteren\) at cfa\+1048
> + DW_CFA_offset_extended_sf: r4362 \(senvcfg\) at cfa\+1064
> DW_CFA_offset_extended_sf: r4416 \(sscratch\) at cfa\+1280
> DW_CFA_offset_extended_sf: r4417 \(sepc\) at cfa\+1284
> DW_CFA_offset_extended_sf: r4418 \(scause\) at cfa\+1288
> @@ -105,6 +106,7 @@ Contents of the .* section:
> DW_CFA_offset_extended_sf: r7954 \(marchid\) at cfa\+15432
> DW_CFA_offset_extended_sf: r7955 \(mimpid\) at cfa\+15436
> DW_CFA_offset_extended_sf: r7956 \(mhartid\) at cfa\+15440
> + DW_CFA_offset_extended_sf: r7957 \(mconfigptr\) at cfa\+15444
> DW_CFA_offset_extended_sf: r4864 \(mstatus\) at cfa\+3072
> DW_CFA_offset_extended_sf: r4865 \(misa\) at cfa\+3076
> DW_CFA_offset_extended_sf: r4866 \(medeleg\) at cfa\+3080
> @@ -112,15 +114,34 @@ Contents of the .* section:
> DW_CFA_offset_extended_sf: r4868 \(mie\) at cfa\+3088
> DW_CFA_offset_extended_sf: r4869 \(mtvec\) at cfa\+3092
> DW_CFA_offset_extended_sf: r4870 \(mcounteren\) at cfa\+3096
> + DW_CFA_offset_extended_sf: r4874 \(menvcfg\) at cfa\+3112
> + DW_CFA_offset_extended_sf: r4880 \(mstatush\) at cfa\+3136
> + DW_CFA_offset_extended_sf: r4890 \(menvcfgh\) at cfa\+3176
> + DW_CFA_offset_extended_sf: r5959 \(mseccfg\) at cfa\+7452
> + DW_CFA_offset_extended_sf: r5975 \(mseccfgh\) at cfa\+7516
> DW_CFA_offset_extended_sf: r4928 \(mscratch\) at cfa\+3328
> DW_CFA_offset_extended_sf: r4929 \(mepc\) at cfa\+3332
> DW_CFA_offset_extended_sf: r4930 \(mcause\) at cfa\+3336
> DW_CFA_offset_extended_sf: r4931 \(mtval\) at cfa\+3340
> DW_CFA_offset_extended_sf: r4932 \(mip\) at cfa\+3344
> + DW_CFA_offset_extended_sf: r4938 \(mtinst\) at cfa\+3368
> + DW_CFA_offset_extended_sf: r4939 \(mtval2\) at cfa\+3372
> DW_CFA_offset_extended_sf: r5024 \(pmpcfg0\) at cfa\+3712
> DW_CFA_offset_extended_sf: r5025 \(pmpcfg1\) at cfa\+3716
> DW_CFA_offset_extended_sf: r5026 \(pmpcfg2\) at cfa\+3720
> DW_CFA_offset_extended_sf: r5027 \(pmpcfg3\) at cfa\+3724
> + DW_CFA_offset_extended_sf: r5028 \(pmpcfg4\) at cfa\+3728
> + DW_CFA_offset_extended_sf: r5029 \(pmpcfg5\) at cfa\+3732
> + DW_CFA_offset_extended_sf: r5030 \(pmpcfg6\) at cfa\+3736
> + DW_CFA_offset_extended_sf: r5031 \(pmpcfg7\) at cfa\+3740
> + DW_CFA_offset_extended_sf: r5032 \(pmpcfg8\) at cfa\+3744
> + DW_CFA_offset_extended_sf: r5033 \(pmpcfg9\) at cfa\+3748
> + DW_CFA_offset_extended_sf: r5034 \(pmpcfg10\) at cfa\+3752
> + DW_CFA_offset_extended_sf: r5035 \(pmpcfg11\) at cfa\+3756
> + DW_CFA_offset_extended_sf: r5036 \(pmpcfg12\) at cfa\+3760
> + DW_CFA_offset_extended_sf: r5037 \(pmpcfg13\) at cfa\+3764
> + DW_CFA_offset_extended_sf: r5038 \(pmpcfg14\) at cfa\+3768
> + DW_CFA_offset_extended_sf: r5039 \(pmpcfg15\) at cfa\+3772
> DW_CFA_offset_extended_sf: r5040 \(pmpaddr0\) at cfa\+3776
> DW_CFA_offset_extended_sf: r5041 \(pmpaddr1\) at cfa\+3780
> DW_CFA_offset_extended_sf: r5042 \(pmpaddr2\) at cfa\+3784
> @@ -137,6 +158,54 @@ Contents of the .* section:
> DW_CFA_offset_extended_sf: r5053 \(pmpaddr13\) at cfa\+3828
> DW_CFA_offset_extended_sf: r5054 \(pmpaddr14\) at cfa\+3832
> DW_CFA_offset_extended_sf: r5055 \(pmpaddr15\) at cfa\+3836
> + DW_CFA_offset_extended_sf: r5056 \(pmpaddr16\) at cfa\+3840
> + DW_CFA_offset_extended_sf: r5057 \(pmpaddr17\) at cfa\+3844
> + DW_CFA_offset_extended_sf: r5058 \(pmpaddr18\) at cfa\+3848
> + DW_CFA_offset_extended_sf: r5059 \(pmpaddr19\) at cfa\+3852
> + DW_CFA_offset_extended_sf: r5060 \(pmpaddr20\) at cfa\+3856
> + DW_CFA_offset_extended_sf: r5061 \(pmpaddr21\) at cfa\+3860
> + DW_CFA_offset_extended_sf: r5062 \(pmpaddr22\) at cfa\+3864
> + DW_CFA_offset_extended_sf: r5063 \(pmpaddr23\) at cfa\+3868
> + DW_CFA_offset_extended_sf: r5064 \(pmpaddr24\) at cfa\+3872
> + DW_CFA_offset_extended_sf: r5065 \(pmpaddr25\) at cfa\+3876
> + DW_CFA_offset_extended_sf: r5066 \(pmpaddr26\) at cfa\+3880
> + DW_CFA_offset_extended_sf: r5067 \(pmpaddr27\) at cfa\+3884
> + DW_CFA_offset_extended_sf: r5068 \(pmpaddr28\) at cfa\+3888
> + DW_CFA_offset_extended_sf: r5069 \(pmpaddr29\) at cfa\+3892
> + DW_CFA_offset_extended_sf: r5070 \(pmpaddr30\) at cfa\+3896
> + DW_CFA_offset_extended_sf: r5071 \(pmpaddr31\) at cfa\+3900
> + DW_CFA_offset_extended_sf: r5072 \(pmpaddr32\) at cfa\+3904
> + DW_CFA_offset_extended_sf: r5073 \(pmpaddr33\) at cfa\+3908
> + DW_CFA_offset_extended_sf: r5074 \(pmpaddr34\) at cfa\+3912
> + DW_CFA_offset_extended_sf: r5075 \(pmpaddr35\) at cfa\+3916
> + DW_CFA_offset_extended_sf: r5076 \(pmpaddr36\) at cfa\+3920
> + DW_CFA_offset_extended_sf: r5077 \(pmpaddr37\) at cfa\+3924
> + DW_CFA_offset_extended_sf: r5078 \(pmpaddr38\) at cfa\+3928
> + DW_CFA_offset_extended_sf: r5079 \(pmpaddr39\) at cfa\+3932
> + DW_CFA_offset_extended_sf: r5080 \(pmpaddr40\) at cfa\+3936
> + DW_CFA_offset_extended_sf: r5081 \(pmpaddr41\) at cfa\+3940
> + DW_CFA_offset_extended_sf: r5082 \(pmpaddr42\) at cfa\+3944
> + DW_CFA_offset_extended_sf: r5083 \(pmpaddr43\) at cfa\+3948
> + DW_CFA_offset_extended_sf: r5084 \(pmpaddr44\) at cfa\+3952
> + DW_CFA_offset_extended_sf: r5085 \(pmpaddr45\) at cfa\+3956
> + DW_CFA_offset_extended_sf: r5086 \(pmpaddr46\) at cfa\+3960
> + DW_CFA_offset_extended_sf: r5087 \(pmpaddr47\) at cfa\+3964
> + DW_CFA_offset_extended_sf: r5088 \(pmpaddr48\) at cfa\+3968
> + DW_CFA_offset_extended_sf: r5089 \(pmpaddr49\) at cfa\+3972
> + DW_CFA_offset_extended_sf: r5090 \(pmpaddr50\) at cfa\+3976
> + DW_CFA_offset_extended_sf: r5091 \(pmpaddr51\) at cfa\+3980
> + DW_CFA_offset_extended_sf: r5092 \(pmpaddr52\) at cfa\+3984
> + DW_CFA_offset_extended_sf: r5093 \(pmpaddr53\) at cfa\+3988
> + DW_CFA_offset_extended_sf: r5094 \(pmpaddr54\) at cfa\+3992
> + DW_CFA_offset_extended_sf: r5095 \(pmpaddr55\) at cfa\+3996
> + DW_CFA_offset_extended_sf: r5096 \(pmpaddr56\) at cfa\+4000
> + DW_CFA_offset_extended_sf: r5097 \(pmpaddr57\) at cfa\+4004
> + DW_CFA_offset_extended_sf: r5098 \(pmpaddr58\) at cfa\+4008
> + DW_CFA_offset_extended_sf: r5099 \(pmpaddr59\) at cfa\+4012
> + DW_CFA_offset_extended_sf: r5100 \(pmpaddr60\) at cfa\+4016
> + DW_CFA_offset_extended_sf: r5101 \(pmpaddr61\) at cfa\+4020
> + DW_CFA_offset_extended_sf: r5102 \(pmpaddr62\) at cfa\+4024
> + DW_CFA_offset_extended_sf: r5103 \(pmpaddr63\) at cfa\+4028
> DW_CFA_offset_extended_sf: r6912 \(mcycle\) at cfa\+11264
> DW_CFA_offset_extended_sf: r6914 \(minstret\) at cfa\+11272
> DW_CFA_offset_extended_sf: r6915 \(mhpmcounter3\) at cfa\+11276
> diff --git a/gas/testsuite/gas/riscv/csr-dw-regnums.s b/gas/testsuite/gas/riscv/csr-dw-regnums.s
> index 2431a23f37c..34635d9c04f 100644
> --- a/gas/testsuite/gas/riscv/csr-dw-regnums.s
> +++ b/gas/testsuite/gas/riscv/csr-dw-regnums.s
> @@ -85,6 +85,7 @@ _start:
> .cfi_offset sie, 1040
> .cfi_offset stvec, 1044
> .cfi_offset scounteren, 1048
> + .cfi_offset senvcfg, 1064
> .cfi_offset sscratch, 1280
> .cfi_offset sepc, 1284
> .cfi_offset scause, 1288
> @@ -95,6 +96,7 @@ _start:
> .cfi_offset marchid, 15432
> .cfi_offset mimpid, 15436
> .cfi_offset mhartid, 15440
> + .cfi_offset mconfigptr, 15444
> .cfi_offset mstatus, 3072
> .cfi_offset misa, 3076
> .cfi_offset medeleg, 3080
> @@ -102,15 +104,34 @@ _start:
> .cfi_offset mie, 3088
> .cfi_offset mtvec, 3092
> .cfi_offset mcounteren, 3096
> + .cfi_offset menvcfg, 3112
> + .cfi_offset mstatush, 3136
> + .cfi_offset menvcfgh, 3176
> + .cfi_offset mseccfg, 7452
> + .cfi_offset mseccfgh, 7516
> .cfi_offset mscratch, 3328
> .cfi_offset mepc, 3332
> .cfi_offset mcause, 3336
> .cfi_offset mtval, 3340
> .cfi_offset mip, 3344
> + .cfi_offset mtinst, 3368
> + .cfi_offset mtval2, 3372
> .cfi_offset pmpcfg0, 3712
> .cfi_offset pmpcfg1, 3716
> .cfi_offset pmpcfg2, 3720
> .cfi_offset pmpcfg3, 3724
> + .cfi_offset pmpcfg4, 3728
> + .cfi_offset pmpcfg5, 3732
> + .cfi_offset pmpcfg6, 3736
> + .cfi_offset pmpcfg7, 3740
> + .cfi_offset pmpcfg8, 3744
> + .cfi_offset pmpcfg9, 3748
> + .cfi_offset pmpcfg10, 3752
> + .cfi_offset pmpcfg11, 3756
> + .cfi_offset pmpcfg12, 3760
> + .cfi_offset pmpcfg13, 3764
> + .cfi_offset pmpcfg14, 3768
> + .cfi_offset pmpcfg15, 3772
> .cfi_offset pmpaddr0, 3776
> .cfi_offset pmpaddr1, 3780
> .cfi_offset pmpaddr2, 3784
> @@ -127,6 +148,54 @@ _start:
> .cfi_offset pmpaddr13, 3828
> .cfi_offset pmpaddr14, 3832
> .cfi_offset pmpaddr15, 3836
> + .cfi_offset pmpaddr16, 3840
> + .cfi_offset pmpaddr17, 3844
> + .cfi_offset pmpaddr18, 3848
> + .cfi_offset pmpaddr19, 3852
> + .cfi_offset pmpaddr20, 3856
> + .cfi_offset pmpaddr21, 3860
> + .cfi_offset pmpaddr22, 3864
> + .cfi_offset pmpaddr23, 3868
> + .cfi_offset pmpaddr24, 3872
> + .cfi_offset pmpaddr25, 3876
> + .cfi_offset pmpaddr26, 3880
> + .cfi_offset pmpaddr27, 3884
> + .cfi_offset pmpaddr28, 3888
> + .cfi_offset pmpaddr29, 3892
> + .cfi_offset pmpaddr30, 3896
> + .cfi_offset pmpaddr31, 3900
> + .cfi_offset pmpaddr32, 3904
> + .cfi_offset pmpaddr33, 3908
> + .cfi_offset pmpaddr34, 3912
> + .cfi_offset pmpaddr35, 3916
> + .cfi_offset pmpaddr36, 3920
> + .cfi_offset pmpaddr37, 3924
> + .cfi_offset pmpaddr38, 3928
> + .cfi_offset pmpaddr39, 3932
> + .cfi_offset pmpaddr40, 3936
> + .cfi_offset pmpaddr41, 3940
> + .cfi_offset pmpaddr42, 3944
> + .cfi_offset pmpaddr43, 3948
> + .cfi_offset pmpaddr44, 3952
> + .cfi_offset pmpaddr45, 3956
> + .cfi_offset pmpaddr46, 3960
> + .cfi_offset pmpaddr47, 3964
> + .cfi_offset pmpaddr48, 3968
> + .cfi_offset pmpaddr49, 3972
> + .cfi_offset pmpaddr50, 3976
> + .cfi_offset pmpaddr51, 3980
> + .cfi_offset pmpaddr52, 3984
> + .cfi_offset pmpaddr53, 3988
> + .cfi_offset pmpaddr54, 3992
> + .cfi_offset pmpaddr55, 3996
> + .cfi_offset pmpaddr56, 4000
> + .cfi_offset pmpaddr57, 4004
> + .cfi_offset pmpaddr58, 4008
> + .cfi_offset pmpaddr59, 4012
> + .cfi_offset pmpaddr60, 4016
> + .cfi_offset pmpaddr61, 4020
> + .cfi_offset pmpaddr62, 4024
> + .cfi_offset pmpaddr63, 4028
> .cfi_offset mcycle, 11264
> .cfi_offset minstret, 11272
> .cfi_offset mhpmcounter3, 11276
> diff --git a/gas/testsuite/gas/riscv/csr-version-1p10.d b/gas/testsuite/gas/riscv/csr-version-1p10.d
> index 88da7240a78..ef4cb65f195 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p10.d
> +++ b/gas/testsuite/gas/riscv/csr-version-1p10.d
> @@ -165,6 +165,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+10559073[ ]+csrw[ ]+stvec,a1
> [ ]+[0-9a-f]+:[ ]+10602573[ ]+csrr[ ]+a0,scounteren
> [ ]+[0-9a-f]+:[ ]+10659073[ ]+csrw[ ]+scounteren,a1
> +[ ]+[0-9a-f]+:[ ]+10a02573[ ]+csrr[ ]+a0,0x10a
> +[ ]+[0-9a-f]+:[ ]+10a59073[ ]+csrw[ ]+0x10a,a1
> [ ]+[0-9a-f]+:[ ]+14002573[ ]+csrr[ ]+a0,sscratch
> [ ]+[0-9a-f]+:[ ]+14059073[ ]+csrw[ ]+sscratch,a1
> [ ]+[0-9a-f]+:[ ]+14102573[ ]+csrr[ ]+a0,sepc
> @@ -185,6 +187,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+f1359073[ ]+csrw[ ]+mimpid,a1
> [ ]+[0-9a-f]+:[ ]+f1402573[ ]+csrr[ ]+a0,mhartid
> [ ]+[0-9a-f]+:[ ]+f1459073[ ]+csrw[ ]+mhartid,a1
> +[ ]+[0-9a-f]+:[ ]+f1502573[ ]+csrr[ ]+a0,0xf15
> +[ ]+[0-9a-f]+:[ ]+f1559073[ ]+csrw[ ]+0xf15,a1
> [ ]+[0-9a-f]+:[ ]+30002573[ ]+csrr[ ]+a0,mstatus
> [ ]+[0-9a-f]+:[ ]+30059073[ ]+csrw[ ]+mstatus,a1
> [ ]+[0-9a-f]+:[ ]+30102573[ ]+csrr[ ]+a0,misa
> @@ -199,6 +203,16 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+30559073[ ]+csrw[ ]+mtvec,a1
> [ ]+[0-9a-f]+:[ ]+30602573[ ]+csrr[ ]+a0,mcounteren
> [ ]+[0-9a-f]+:[ ]+30659073[ ]+csrw[ ]+mcounteren,a1
> +[ ]+[0-9a-f]+:[ ]+30a02573[ ]+csrr[ ]+a0,0x30a
> +[ ]+[0-9a-f]+:[ ]+30a59073[ ]+csrw[ ]+0x30a,a1
> +[ ]+[0-9a-f]+:[ ]+31002573[ ]+csrr[ ]+a0,0x310
> +[ ]+[0-9a-f]+:[ ]+31059073[ ]+csrw[ ]+0x310,a1
> +[ ]+[0-9a-f]+:[ ]+31a02573[ ]+csrr[ ]+a0,0x31a
> +[ ]+[0-9a-f]+:[ ]+31a59073[ ]+csrw[ ]+0x31a,a1
> +[ ]+[0-9a-f]+:[ ]+74702573[ ]+csrr[ ]+a0,0x747
> +[ ]+[0-9a-f]+:[ ]+74759073[ ]+csrw[ ]+0x747,a1
> +[ ]+[0-9a-f]+:[ ]+75702573[ ]+csrr[ ]+a0,0x757
> +[ ]+[0-9a-f]+:[ ]+75759073[ ]+csrw[ ]+0x757,a1
> [ ]+[0-9a-f]+:[ ]+34002573[ ]+csrr[ ]+a0,mscratch
> [ ]+[0-9a-f]+:[ ]+34059073[ ]+csrw[ ]+mscratch,a1
> [ ]+[0-9a-f]+:[ ]+34102573[ ]+csrr[ ]+a0,mepc
> @@ -209,6 +223,10 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+34359073[ ]+csrw[ ]+mtval,a1
> [ ]+[0-9a-f]+:[ ]+34402573[ ]+csrr[ ]+a0,mip
> [ ]+[0-9a-f]+:[ ]+34459073[ ]+csrw[ ]+mip,a1
> +[ ]+[0-9a-f]+:[ ]+34a02573[ ]+csrr[ ]+a0,0x34a
> +[ ]+[0-9a-f]+:[ ]+34a59073[ ]+csrw[ ]+0x34a,a1
> +[ ]+[0-9a-f]+:[ ]+34b02573[ ]+csrr[ ]+a0,0x34b
> +[ ]+[0-9a-f]+:[ ]+34b59073[ ]+csrw[ ]+0x34b,a1
> [ ]+[0-9a-f]+:[ ]+3a002573[ ]+csrr[ ]+a0,pmpcfg0
> [ ]+[0-9a-f]+:[ ]+3a059073[ ]+csrw[ ]+pmpcfg0,a1
> [ ]+[0-9a-f]+:[ ]+3a102573[ ]+csrr[ ]+a0,pmpcfg1
> @@ -217,6 +235,30 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+3a259073[ ]+csrw[ ]+pmpcfg2,a1
> [ ]+[0-9a-f]+:[ ]+3a302573[ ]+csrr[ ]+a0,pmpcfg3
> [ ]+[0-9a-f]+:[ ]+3a359073[ ]+csrw[ ]+pmpcfg3,a1
> +[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]+a0,mcycle
> [ ]+[0-9a-f]+:[ ]+b0059073[ ]+csrw[ ]+mcycle,a1
> [ ]+[0-9a-f]+:[ ]+b0202573[ ]+csrr[ ]+a0,minstret
> diff --git a/gas/testsuite/gas/riscv/csr-version-1p10.l b/gas/testsuite/gas/riscv/csr-version-1p10.l
> index ed6773e637c..c0cb2d5d279 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p10.l
> +++ b/gas/testsuite/gas/riscv/csr-version-1p10.l
> @@ -127,14 +127,171 @@
> .*Warning: invalid CSR `hpmcounter31h' for the current ISA
> .*Warning: invalid CSR `hpmcounter31h' for the current ISA
> .*Warning: read-only CSR is written `csrw hpmcounter31h,a1'
> +.*Warning: invalid CSR `senvcfg' for the privileged spec `1.10'
> +.*Warning: invalid CSR `senvcfg' for the privileged spec `1.10'
> .*Warning: read-only CSR is written `csrw mvendorid,a1'
> .*Warning: read-only CSR is written `csrw marchid,a1'
> .*Warning: read-only CSR is written `csrw mimpid,a1'
> .*Warning: read-only CSR is written `csrw mhartid,a1'
> +.*Warning: invalid CSR `mconfigptr' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mconfigptr' for the privileged spec `1.10'
> +.*Warning: read-only CSR is written `csrw mconfigptr,a1'
> +.*Warning: invalid CSR `menvcfg' for the privileged spec `1.10'
> +.*Warning: invalid CSR `menvcfg' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `mstatush' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `mstatush' for the privileged spec `1.10'
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the privileged spec `1.10'
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mseccfg' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mseccfg' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mtinst' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mtinst' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mtval2' for the privileged spec `1.10'
> +.*Warning: invalid CSR `mtval2' for the privileged spec `1.10'
> .*Warning: invalid CSR `pmpcfg1' for the current ISA
> .*Warning: invalid CSR `pmpcfg1' for the current ISA
> .*Warning: invalid CSR `pmpcfg3' for the current ISA
> .*Warning: invalid CSR `pmpcfg3' for the current ISA
> +.*Warning: invalid CSR `pmpcfg4' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg4' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg6' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg6' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg8' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg8' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg10' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg10' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg12' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg12' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg14' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg14' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr16' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr16' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr17' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr17' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr18' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr18' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr19' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr19' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr20' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr20' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr21' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr21' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr22' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr22' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr23' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr23' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr24' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr24' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr25' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr25' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr26' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr26' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr27' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr27' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr28' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr28' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr29' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr29' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr30' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr30' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr31' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr31' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr32' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr32' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr33' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr33' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr34' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr34' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr35' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr35' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr36' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr36' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr37' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr37' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr38' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr38' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr39' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr39' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr40' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr40' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr41' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr41' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr42' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr42' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr43' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr43' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr44' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr44' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr45' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr45' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr46' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr46' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr47' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr47' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr48' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr48' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr49' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr49' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr50' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr50' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr51' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr51' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr52' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr52' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr53' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr53' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr54' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr54' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr55' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr55' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr56' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr56' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr57' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr57' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr58' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr58' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr59' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr59' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr60' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr60' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr61' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr61' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr62' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr62' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr63' for the privileged spec `1.10'
> +.*Warning: invalid CSR `pmpaddr63' for the privileged spec `1.10'
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `minstreth' for the current ISA
> diff --git a/gas/testsuite/gas/riscv/csr-version-1p11.d b/gas/testsuite/gas/riscv/csr-version-1p11.d
> index b40c1d5d6b9..a8586d96408 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p11.d
> +++ b/gas/testsuite/gas/riscv/csr-version-1p11.d
> @@ -165,6 +165,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+10559073[ ]+csrw[ ]+stvec,a1
> [ ]+[0-9a-f]+:[ ]+10602573[ ]+csrr[ ]+a0,scounteren
> [ ]+[0-9a-f]+:[ ]+10659073[ ]+csrw[ ]+scounteren,a1
> +[ ]+[0-9a-f]+:[ ]+10a02573[ ]+csrr[ ]+a0,0x10a
> +[ ]+[0-9a-f]+:[ ]+10a59073[ ]+csrw[ ]+0x10a,a1
> [ ]+[0-9a-f]+:[ ]+14002573[ ]+csrr[ ]+a0,sscratch
> [ ]+[0-9a-f]+:[ ]+14059073[ ]+csrw[ ]+sscratch,a1
> [ ]+[0-9a-f]+:[ ]+14102573[ ]+csrr[ ]+a0,sepc
> @@ -185,6 +187,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+f1359073[ ]+csrw[ ]+mimpid,a1
> [ ]+[0-9a-f]+:[ ]+f1402573[ ]+csrr[ ]+a0,mhartid
> [ ]+[0-9a-f]+:[ ]+f1459073[ ]+csrw[ ]+mhartid,a1
> +[ ]+[0-9a-f]+:[ ]+f1502573[ ]+csrr[ ]+a0,0xf15
> +[ ]+[0-9a-f]+:[ ]+f1559073[ ]+csrw[ ]+0xf15,a1
> [ ]+[0-9a-f]+:[ ]+30002573[ ]+csrr[ ]+a0,mstatus
> [ ]+[0-9a-f]+:[ ]+30059073[ ]+csrw[ ]+mstatus,a1
> [ ]+[0-9a-f]+:[ ]+30102573[ ]+csrr[ ]+a0,misa
> @@ -199,6 +203,16 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+30559073[ ]+csrw[ ]+mtvec,a1
> [ ]+[0-9a-f]+:[ ]+30602573[ ]+csrr[ ]+a0,mcounteren
> [ ]+[0-9a-f]+:[ ]+30659073[ ]+csrw[ ]+mcounteren,a1
> +[ ]+[0-9a-f]+:[ ]+30a02573[ ]+csrr[ ]+a0,0x30a
> +[ ]+[0-9a-f]+:[ ]+30a59073[ ]+csrw[ ]+0x30a,a1
> +[ ]+[0-9a-f]+:[ ]+31002573[ ]+csrr[ ]+a0,0x310
> +[ ]+[0-9a-f]+:[ ]+31059073[ ]+csrw[ ]+0x310,a1
> +[ ]+[0-9a-f]+:[ ]+31a02573[ ]+csrr[ ]+a0,0x31a
> +[ ]+[0-9a-f]+:[ ]+31a59073[ ]+csrw[ ]+0x31a,a1
> +[ ]+[0-9a-f]+:[ ]+74702573[ ]+csrr[ ]+a0,0x747
> +[ ]+[0-9a-f]+:[ ]+74759073[ ]+csrw[ ]+0x747,a1
> +[ ]+[0-9a-f]+:[ ]+75702573[ ]+csrr[ ]+a0,0x757
> +[ ]+[0-9a-f]+:[ ]+75759073[ ]+csrw[ ]+0x757,a1
> [ ]+[0-9a-f]+:[ ]+34002573[ ]+csrr[ ]+a0,mscratch
> [ ]+[0-9a-f]+:[ ]+34059073[ ]+csrw[ ]+mscratch,a1
> [ ]+[0-9a-f]+:[ ]+34102573[ ]+csrr[ ]+a0,mepc
> @@ -209,6 +223,10 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+34359073[ ]+csrw[ ]+mtval,a1
> [ ]+[0-9a-f]+:[ ]+34402573[ ]+csrr[ ]+a0,mip
> [ ]+[0-9a-f]+:[ ]+34459073[ ]+csrw[ ]+mip,a1
> +[ ]+[0-9a-f]+:[ ]+34a02573[ ]+csrr[ ]+a0,0x34a
> +[ ]+[0-9a-f]+:[ ]+34a59073[ ]+csrw[ ]+0x34a,a1
> +[ ]+[0-9a-f]+:[ ]+34b02573[ ]+csrr[ ]+a0,0x34b
> +[ ]+[0-9a-f]+:[ ]+34b59073[ ]+csrw[ ]+0x34b,a1
> [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+[0-9a-f]+:[ ]+3ed02573[ ]+csrr[ ]+a0,0x3ed
> +[ ]+[0-9a-f]+:[ ]+3ed59073[ ]+csrw[ ]+0x3ed,a1
> +[ ]+[0-9a-f]+:[ ]+3ee02573[ ]+csrr[ ]+a0,0x3ee
> +[ ]+[0-9a-f]+:[ ]+3ee59073[ ]+csrw[ ]+0x3ee,a1
> +[ ]+[0-9a-f]+:[ ]+3ef02573[ ]+csrr[ ]+a0,0x3ef
> +[ ]+[0-9a-f]+:[ ]+3ef59073[ ]+csrw[ ]+0x3ef,a1
> [ ]+[0-9a-f]+:[ ]+b0002573[ ]+csrr[ ]+a0,mcycle
> [ ]+[0-9a-f]+:[ ]+b0059073[ ]+csrw[ ]+mcycle,a1
> [ ]+[0-9a-f]+:[ ]+b0202573[ ]+csrr[ ]+a0,minstret
> diff --git a/gas/testsuite/gas/riscv/csr-version-1p11.l b/gas/testsuite/gas/riscv/csr-version-1p11.l
> index 44d9611fe49..36ca02a2b1f 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p11.l
> +++ b/gas/testsuite/gas/riscv/csr-version-1p11.l
> @@ -127,14 +127,171 @@
> .*Warning: invalid CSR `hpmcounter31h' for the current ISA
> .*Warning: invalid CSR `hpmcounter31h' for the current ISA
> .*Warning: read-only CSR is written `csrw hpmcounter31h,a1'
> +.*Warning: invalid CSR `senvcfg' for the privileged spec `1.11'
> +.*Warning: invalid CSR `senvcfg' for the privileged spec `1.11'
> .*Warning: read-only CSR is written `csrw mvendorid,a1'
> .*Warning: read-only CSR is written `csrw marchid,a1'
> .*Warning: read-only CSR is written `csrw mimpid,a1'
> .*Warning: read-only CSR is written `csrw mhartid,a1'
> +.*Warning: invalid CSR `mconfigptr' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mconfigptr' for the privileged spec `1.11'
> +.*Warning: read-only CSR is written `csrw mconfigptr,a1'
> +.*Warning: invalid CSR `menvcfg' for the privileged spec `1.11'
> +.*Warning: invalid CSR `menvcfg' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `mstatush' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `mstatush' for the privileged spec `1.11'
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the privileged spec `1.11'
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mseccfg' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mseccfg' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mtinst' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mtinst' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mtval2' for the privileged spec `1.11'
> +.*Warning: invalid CSR `mtval2' for the privileged spec `1.11'
> .*Warning: invalid CSR `pmpcfg1' for the current ISA
> .*Warning: invalid CSR `pmpcfg1' for the current ISA
> .*Warning: invalid CSR `pmpcfg3' for the current ISA
> .*Warning: invalid CSR `pmpcfg3' for the current ISA
> +.*Warning: invalid CSR `pmpcfg4' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg4' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg6' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg6' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg8' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg8' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg10' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg10' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg12' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg12' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg14' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg14' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr16' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr16' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr17' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr17' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr18' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr18' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr19' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr19' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr20' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr20' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr21' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr21' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr22' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr22' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr23' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr23' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr24' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr24' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr25' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr25' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr26' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr26' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr27' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr27' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr28' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr28' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr29' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr29' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr30' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr30' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr31' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr31' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr32' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr32' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr33' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr33' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr34' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr34' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr35' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr35' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr36' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr36' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr37' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr37' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr38' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr38' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr39' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr39' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr40' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr40' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr41' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr41' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr42' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr42' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr43' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr43' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr44' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr44' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr45' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr45' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr46' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr46' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr47' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr47' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr48' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr48' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr49' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr49' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr50' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr50' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr51' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr51' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr52' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr52' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr53' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr53' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr54' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr54' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr55' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr55' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr56' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr56' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr57' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr57' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr58' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr58' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr59' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr59' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr60' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr60' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr61' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr61' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr62' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr62' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr63' for the privileged spec `1.11'
> +.*Warning: invalid CSR `pmpaddr63' for the privileged spec `1.11'
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `minstreth' for the current ISA
> diff --git a/gas/testsuite/gas/riscv/csr-version-1p12.d b/gas/testsuite/gas/riscv/csr-version-1p12.d
> index fbc30ee2fcc..8281910b89f 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p12.d
> +++ b/gas/testsuite/gas/riscv/csr-version-1p12.d
> @@ -165,6 +165,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+10559073[ ]+csrw[ ]+stvec,a1
> [ ]+[0-9a-f]+:[ ]+10602573[ ]+csrr[ ]+a0,scounteren
> [ ]+[0-9a-f]+:[ ]+10659073[ ]+csrw[ ]+scounteren,a1
> +[ ]+[0-9a-f]+:[ ]+10a02573[ ]+csrr[ ]+a0,senvcfg
> +[ ]+[0-9a-f]+:[ ]+10a59073[ ]+csrw[ ]+senvcfg,a1
> [ ]+[0-9a-f]+:[ ]+14002573[ ]+csrr[ ]+a0,sscratch
> [ ]+[0-9a-f]+:[ ]+14059073[ ]+csrw[ ]+sscratch,a1
> [ ]+[0-9a-f]+:[ ]+14102573[ ]+csrr[ ]+a0,sepc
> @@ -185,6 +187,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+f1359073[ ]+csrw[ ]+mimpid,a1
> [ ]+[0-9a-f]+:[ ]+f1402573[ ]+csrr[ ]+a0,mhartid
> [ ]+[0-9a-f]+:[ ]+f1459073[ ]+csrw[ ]+mhartid,a1
> +[ ]+[0-9a-f]+:[ ]+f1502573[ ]+csrr[ ]+a0,mconfigptr
> +[ ]+[0-9a-f]+:[ ]+f1559073[ ]+csrw[ ]+mconfigptr,a1
> [ ]+[0-9a-f]+:[ ]+30002573[ ]+csrr[ ]+a0,mstatus
> [ ]+[0-9a-f]+:[ ]+30059073[ ]+csrw[ ]+mstatus,a1
> [ ]+[0-9a-f]+:[ ]+30102573[ ]+csrr[ ]+a0,misa
> @@ -199,6 +203,16 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+30559073[ ]+csrw[ ]+mtvec,a1
> [ ]+[0-9a-f]+:[ ]+30602573[ ]+csrr[ ]+a0,mcounteren
> [ ]+[0-9a-f]+:[ ]+30659073[ ]+csrw[ ]+mcounteren,a1
> +[ ]+[0-9a-f]+:[ ]+30a02573[ ]+csrr[ ]+a0,menvcfg
> +[ ]+[0-9a-f]+:[ ]+30a59073[ ]+csrw[ ]+menvcfg,a1
> +[ ]+[0-9a-f]+:[ ]+31002573[ ]+csrr[ ]+a0,mstatush
> +[ ]+[0-9a-f]+:[ ]+31059073[ ]+csrw[ ]+mstatush,a1
> +[ ]+[0-9a-f]+:[ ]+31a02573[ ]+csrr[ ]+a0,menvcfgh
> +[ ]+[0-9a-f]+:[ ]+31a59073[ ]+csrw[ ]+menvcfgh,a1
> +[ ]+[0-9a-f]+:[ ]+74702573[ ]+csrr[ ]+a0,mseccfg
> +[ ]+[0-9a-f]+:[ ]+74759073[ ]+csrw[ ]+mseccfg,a1
> +[ ]+[0-9a-f]+:[ ]+75702573[ ]+csrr[ ]+a0,mseccfgh
> +[ ]+[0-9a-f]+:[ ]+75759073[ ]+csrw[ ]+mseccfgh,a1
> [ ]+[0-9a-f]+:[ ]+34002573[ ]+csrr[ ]+a0,mscratch
> [ ]+[0-9a-f]+:[ ]+34059073[ ]+csrw[ ]+mscratch,a1
> [ ]+[0-9a-f]+:[ ]+34102573[ ]+csrr[ ]+a0,mepc
> @@ -209,6 +223,10 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+34359073[ ]+csrw[ ]+mtval,a1
> [ ]+[0-9a-f]+:[ ]+34402573[ ]+csrr[ ]+a0,mip
> [ ]+[0-9a-f]+:[ ]+34459073[ ]+csrw[ ]+mip,a1
> +[ ]+[0-9a-f]+:[ ]+34a02573[ ]+csrr[ ]+a0,mtinst
> +[ ]+[0-9a-f]+:[ ]+34a59073[ ]+csrw[ ]+mtinst,a1
> +[ ]+[0-9a-f]+:[ ]+34b02573[ ]+csrr[ ]+a0,mtval2
> +[ ]+[0-9a-f]+:[ ]+34b59073[ ]+csrw[ ]+mtval2,a1
> [ ]+[0-9a-f]+:[ ]+3a002573[ ]+csrr[ ]+a0,pmpcfg0
> [ ]+[0-9a-f]+:[ ]+3a059073[ ]+csrw[ ]+pmpcfg0,a1
> [ ]+[0-9a-f]+:[ ]+3a102573[ ]+csrr[ ]+a0,pmpcfg1
> @@ -217,6 +235,30 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+3a259073[ ]+csrw[ ]+pmpcfg2,a1
> [ ]+[0-9a-f]+:[ ]+3a302573[ ]+csrr[ ]+a0,pmpcfg3
> [ ]+[0-9a-f]+:[ ]+3a359073[ ]+csrw[ ]+pmpcfg3,a1
> +[ ]+[0-9a-f]+:[ ]+3a402573[ ]+csrr[ ]+a0,pmpcfg4
> +[ ]+[0-9a-f]+:[ ]+3a459073[ ]+csrw[ ]+pmpcfg4,a1
> +[ ]+[0-9a-f]+:[ ]+3a502573[ ]+csrr[ ]+a0,pmpcfg5
> +[ ]+[0-9a-f]+:[ ]+3a559073[ ]+csrw[ ]+pmpcfg5,a1
> +[ ]+[0-9a-f]+:[ ]+3a602573[ ]+csrr[ ]+a0,pmpcfg6
> +[ ]+[0-9a-f]+:[ ]+3a659073[ ]+csrw[ ]+pmpcfg6,a1
> +[ ]+[0-9a-f]+:[ ]+3a702573[ ]+csrr[ ]+a0,pmpcfg7
> +[ ]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diff --git a/gas/testsuite/gas/riscv/csr-version-1p12.l b/gas/testsuite/gas/riscv/csr-version-1p12.l
> index 237cb8a1699..387c6e2d419 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p12.l
> +++ b/gas/testsuite/gas/riscv/csr-version-1p12.l
> @@ -131,10 +131,29 @@
> .*Warning: read-only CSR is written `csrw marchid,a1'
> .*Warning: read-only CSR is written `csrw mimpid,a1'
> .*Warning: read-only CSR is written `csrw mhartid,a1'
> +.*Warning: read-only CSR is written `csrw mconfigptr,a1'
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> .*Warning: invalid CSR `pmpcfg1' for the current ISA
> .*Warning: invalid CSR `pmpcfg1' for the current ISA
> .*Warning: invalid CSR `pmpcfg3' for the current ISA
> .*Warning: invalid CSR `pmpcfg3' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `minstreth' for the current ISA
> diff --git a/gas/testsuite/gas/riscv/csr-version-1p9p1.d b/gas/testsuite/gas/riscv/csr-version-1p9p1.d
> index a96e8c9dbec..f5af018e1e1 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p9p1.d
> +++ b/gas/testsuite/gas/riscv/csr-version-1p9p1.d
> @@ -165,6 +165,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+10559073[ ]+csrw[ ]+stvec,a1
> [ ]+[0-9a-f]+:[ ]+10602573[ ]+csrr[ ]+a0,0x106
> [ ]+[0-9a-f]+:[ ]+10659073[ ]+csrw[ ]+0x106,a1
> +[ ]+[0-9a-f]+:[ ]+10a02573[ ]+csrr[ ]+a0,0x10a
> +[ ]+[0-9a-f]+:[ ]+10a59073[ ]+csrw[ ]+0x10a,a1
> [ ]+[0-9a-f]+:[ ]+14002573[ ]+csrr[ ]+a0,sscratch
> [ ]+[0-9a-f]+:[ ]+14059073[ ]+csrw[ ]+sscratch,a1
> [ ]+[0-9a-f]+:[ ]+14102573[ ]+csrr[ ]+a0,sepc
> @@ -185,6 +187,8 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+f1359073[ ]+csrw[ ]+mimpid,a1
> [ ]+[0-9a-f]+:[ ]+f1402573[ ]+csrr[ ]+a0,mhartid
> [ ]+[0-9a-f]+:[ ]+f1459073[ ]+csrw[ ]+mhartid,a1
> +[ ]+[0-9a-f]+:[ ]+f1502573[ ]+csrr[ ]+a0,0xf15
> +[ ]+[0-9a-f]+:[ ]+f1559073[ ]+csrw[ ]+0xf15,a1
> [ ]+[0-9a-f]+:[ ]+30002573[ ]+csrr[ ]+a0,mstatus
> [ ]+[0-9a-f]+:[ ]+30059073[ ]+csrw[ ]+mstatus,a1
> [ ]+[0-9a-f]+:[ ]+30102573[ ]+csrr[ ]+a0,misa
> @@ -199,6 +203,16 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+30559073[ ]+csrw[ ]+mtvec,a1
> [ ]+[0-9a-f]+:[ ]+30602573[ ]+csrr[ ]+a0,0x306
> [ ]+[0-9a-f]+:[ ]+30659073[ ]+csrw[ ]+0x306,a1
> +[ ]+[0-9a-f]+:[ ]+30a02573[ ]+csrr[ ]+a0,0x30a
> +[ ]+[0-9a-f]+:[ ]+30a59073[ ]+csrw[ ]+0x30a,a1
> +[ ]+[0-9a-f]+:[ ]+31002573[ ]+csrr[ ]+a0,0x310
> +[ ]+[0-9a-f]+:[ ]+31059073[ ]+csrw[ ]+0x310,a1
> +[ ]+[0-9a-f]+:[ ]+31a02573[ ]+csrr[ ]+a0,0x31a
> +[ ]+[0-9a-f]+:[ ]+31a59073[ ]+csrw[ ]+0x31a,a1
> +[ ]+[0-9a-f]+:[ ]+74702573[ ]+csrr[ ]+a0,0x747
> +[ ]+[0-9a-f]+:[ ]+74759073[ ]+csrw[ ]+0x747,a1
> +[ ]+[0-9a-f]+:[ ]+75702573[ ]+csrr[ ]+a0,0x757
> +[ ]+[0-9a-f]+:[ ]+75759073[ ]+csrw[ ]+0x757,a1
> [ ]+[0-9a-f]+:[ ]+34002573[ ]+csrr[ ]+a0,mscratch
> [ ]+[0-9a-f]+:[ ]+34059073[ ]+csrw[ ]+mscratch,a1
> [ ]+[0-9a-f]+:[ ]+34102573[ ]+csrr[ ]+a0,mepc
> @@ -209,6 +223,10 @@ Disassembly of section .text:
> [ ]+[0-9a-f]+:[ ]+34359073[ ]+csrw[ ]+mbadaddr,a1
> [ ]+[0-9a-f]+:[ ]+34402573[ ]+csrr[ ]+a0,mip
> [ ]+[0-9a-f]+:[ ]+34459073[ ]+csrw[ ]+mip,a1
> +[ ]+[0-9a-f]+:[ ]+34a02573[ ]+csrr[ ]+a0,0x34a
> +[ ]+[0-9a-f]+:[ ]+34a59073[ ]+csrw[ ]+0x34a,a1
> +[ ]+[0-9a-f]+:[ ]+34b02573[ ]+csrr[ ]+a0,0x34b
> +[ ]+[0-9a-f]+:[ ]+34b59073[ ]+csrw[ ]+0x34b,a1
> [ ]+[0-9a-f]+:[ ]+3a002573[ ]+csrr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f]+:[ ]+3ed59073[ ]+csrw[ ]+0x3ed,a1
> +[ ]+[0-9a-f]+:[ ]+3ee02573[ ]+csrr[ ]+a0,0x3ee
> +[ ]+[0-9a-f]+:[ ]+3ee59073[ ]+csrw[ ]+0x3ee,a1
> +[ ]+[0-9a-f]+:[ ]+3ef02573[ ]+csrr[ ]+a0,0x3ef
> +[ ]+[0-9a-f]+:[ ]+3ef59073[ ]+csrw[ ]+0x3ef,a1
> [ ]+[0-9a-f]+:[ ]+b0002573[ ]+csrr[ ]+a0,mcycle
> [ ]+[0-9a-f]+:[ ]+b0059073[ ]+csrw[ ]+mcycle,a1
> [ ]+[0-9a-f]+:[ ]+b0202573[ ]+csrr[ ]+a0,minstret
> diff --git a/gas/testsuite/gas/riscv/csr-version-1p9p1.l b/gas/testsuite/gas/riscv/csr-version-1p9p1.l
> index 00d46f509de..ca50442bc7a 100644
> --- a/gas/testsuite/gas/riscv/csr-version-1p9p1.l
> +++ b/gas/testsuite/gas/riscv/csr-version-1p9p1.l
> @@ -131,6 +131,8 @@
> .*Warning: read-only CSR is written `csrw hpmcounter31h,a1'
> .*Warning: invalid CSR `scounteren' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `scounteren' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `senvcfg' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `senvcfg' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `stval' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `stval' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `satp' for the privileged spec `1.9.1'
> @@ -139,10 +141,33 @@
> .*Warning: read-only CSR is written `csrw marchid,a1'
> .*Warning: read-only CSR is written `csrw mimpid,a1'
> .*Warning: read-only CSR is written `csrw mhartid,a1'
> +.*Warning: invalid CSR `mconfigptr' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mconfigptr' for the privileged spec `1.9.1'
> +.*Warning: read-only CSR is written `csrw mconfigptr,a1'
> .*Warning: invalid CSR `mcounteren' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `mcounteren' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `menvcfg' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `menvcfg' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `mstatush' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mstatush' for the current ISA
> +.*Warning: invalid CSR `mstatush' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `menvcfgh' for the current ISA
> +.*Warning: invalid CSR `menvcfgh' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mseccfg' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mseccfg' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mseccfgh' for the current ISA
> +.*Warning: invalid CSR `mseccfgh' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `mtval' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `mtval' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mtinst' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mtinst' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mtval2' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `mtval2' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpcfg0' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpcfg0' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpcfg1' for the current ISA
> @@ -155,6 +180,42 @@
> .*Warning: invalid CSR `pmpcfg3' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpcfg3' for the current ISA
> .*Warning: invalid CSR `pmpcfg3' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg4' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg4' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg5' for the current ISA
> +.*Warning: invalid CSR `pmpcfg5' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg6' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg6' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg7' for the current ISA
> +.*Warning: invalid CSR `pmpcfg7' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg8' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg8' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg9' for the current ISA
> +.*Warning: invalid CSR `pmpcfg9' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg10' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg10' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg11' for the current ISA
> +.*Warning: invalid CSR `pmpcfg11' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg12' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg12' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg13' for the current ISA
> +.*Warning: invalid CSR `pmpcfg13' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg14' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg14' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpcfg15' for the current ISA
> +.*Warning: invalid CSR `pmpcfg15' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpaddr0' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpaddr0' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpaddr1' for the privileged spec `1.9.1'
> @@ -187,6 +248,102 @@
> .*Warning: invalid CSR `pmpaddr14' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpaddr15' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `pmpaddr15' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr16' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr16' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr17' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr17' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr18' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr18' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr19' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr19' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr20' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr20' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr21' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr21' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr22' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr22' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr23' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr23' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr24' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr24' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr25' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr25' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr26' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr26' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr27' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr27' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr28' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr28' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr29' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr29' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr30' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr30' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr31' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr31' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr32' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr32' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr33' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr33' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr34' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr34' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr35' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr35' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr36' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr36' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr37' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr37' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr38' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr38' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr39' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr39' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr40' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr40' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr41' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr41' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr42' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr42' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr43' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr43' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr44' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr44' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr45' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr45' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr46' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr46' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr47' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr47' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr48' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr48' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr49' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr49' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr50' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr50' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr51' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr51' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr52' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr52' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr53' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr53' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr54' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr54' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr55' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr55' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr56' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr56' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr57' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr57' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr58' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr58' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr59' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr59' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr60' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr60' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr61' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr61' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr62' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr62' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr63' for the privileged spec `1.9.1'
> +.*Warning: invalid CSR `pmpaddr63' for the privileged spec `1.9.1'
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `mcycleh' for the current ISA
> .*Warning: invalid CSR `minstreth' for the current ISA
> diff --git a/gas/testsuite/gas/riscv/csr.s b/gas/testsuite/gas/riscv/csr.s
> index 568328d70d9..cbb0e23991b 100644
> --- a/gas/testsuite/gas/riscv/csr.s
> +++ b/gas/testsuite/gas/riscv/csr.s
> @@ -90,6 +90,7 @@
> csr sie
> csr stvec
> csr scounteren # Added in 1.10
> + csr senvcfg # Added in 1.12
>
> # Supervisor Trap Handling
> csr sscratch
> @@ -106,6 +107,7 @@
> csr marchid
> csr mimpid
> csr mhartid
> + csr mconfigptr # Added in 1.12
>
> # Machine Trap Setup
> csr mstatus
> @@ -115,6 +117,11 @@
> csr mie
> csr mtvec
> csr mcounteren # Added in 1.10
> + csr menvcfg # Added in 1.12
> + csr mstatush # Added in 1.12
> + csr menvcfgh # Added in 1.12
> + csr mseccfg # Added in 1.12
> + csr mseccfgh # Added in 1.12
>
> # Machine Trap Handling
> csr mscratch
> @@ -122,12 +129,26 @@
> csr mcause
> csr mtval # Added in 1.10
> csr mip
> + csr mtinst # Added in 1.12
> + csr mtval2 # Added in 1.12
>
> # Machine Memory Protection
> csr pmpcfg0 # Added in 1.10
> csr pmpcfg1 # Added in 1.10
> csr pmpcfg2 # Added in 1.10
> csr pmpcfg3 # Added in 1.10
> + csr pmpcfg4 # Added in 1.12
> + csr pmpcfg5 # Added in 1.12
> + csr pmpcfg6 # Added in 1.12
> + csr pmpcfg7 # Added in 1.12
> + csr pmpcfg8 # Added in 1.12
> + csr pmpcfg9 # Added in 1.12
> + csr pmpcfg10 # Added in 1.12
> + csr pmpcfg11 # Added in 1.12
> + csr pmpcfg12 # Added in 1.12
> + csr pmpcfg13 # Added in 1.12
> + csr pmpcfg14 # Added in 1.12
> + csr pmpcfg15 # Added in 1.12
> csr pmpaddr0 # Added in 1.10
> csr pmpaddr1 # Added in 1.10
> csr pmpaddr2 # Added in 1.10
> @@ -144,6 +165,54 @@
> csr pmpaddr13 # Added in 1.10
> csr pmpaddr14 # Added in 1.10
> csr pmpaddr15 # Added in 1.10
> + csr pmpaddr16 # Added in 1.12
> + csr pmpaddr17 # Added in 1.12
> + csr pmpaddr18 # Added in 1.12
> + csr pmpaddr19 # Added in 1.12
> + csr pmpaddr20 # Added in 1.12
> + csr pmpaddr21 # Added in 1.12
> + csr pmpaddr22 # Added in 1.12
> + csr pmpaddr23 # Added in 1.12
> + csr pmpaddr24 # Added in 1.12
> + csr pmpaddr25 # Added in 1.12
> + csr pmpaddr26 # Added in 1.12
> + csr pmpaddr27 # Added in 1.12
> + csr pmpaddr28 # Added in 1.12
> + csr pmpaddr29 # Added in 1.12
> + csr pmpaddr30 # Added in 1.12
> + csr pmpaddr31 # Added in 1.12
> + csr pmpaddr32 # Added in 1.12
> + csr pmpaddr33 # Added in 1.12
> + csr pmpaddr34 # Added in 1.12
> + csr pmpaddr35 # Added in 1.12
> + csr pmpaddr36 # Added in 1.12
> + csr pmpaddr37 # Added in 1.12
> + csr pmpaddr38 # Added in 1.12
> + csr pmpaddr39 # Added in 1.12
> + csr pmpaddr40 # Added in 1.12
> + csr pmpaddr41 # Added in 1.12
> + csr pmpaddr42 # Added in 1.12
> + csr pmpaddr43 # Added in 1.12
> + csr pmpaddr44 # Added in 1.12
> + csr pmpaddr45 # Added in 1.12
> + csr pmpaddr46 # Added in 1.12
> + csr pmpaddr47 # Added in 1.12
> + csr pmpaddr48 # Added in 1.12
> + csr pmpaddr49 # Added in 1.12
> + csr pmpaddr50 # Added in 1.12
> + csr pmpaddr51 # Added in 1.12
> + csr pmpaddr52 # Added in 1.12
> + csr pmpaddr53 # Added in 1.12
> + csr pmpaddr54 # Added in 1.12
> + csr pmpaddr55 # Added in 1.12
> + csr pmpaddr56 # Added in 1.12
> + csr pmpaddr57 # Added in 1.12
> + csr pmpaddr58 # Added in 1.12
> + csr pmpaddr59 # Added in 1.12
> + csr pmpaddr60 # Added in 1.12
> + csr pmpaddr61 # Added in 1.12
> + csr pmpaddr62 # Added in 1.12
> + csr pmpaddr63 # Added in 1.12
>
> # Machine Counter/Timer
> csr mcycle
> --
> 2.32.0
>
next prev parent reply other threads:[~2022-02-23 6:58 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 10:59 [PATCH 0/6] RISC-V: Add Privileged Arch 1.12 and More CSRs Tsukasa OI
2022-01-11 10:59 ` [PATCH 1/6] RISC-V: Reorganize testcases for CFI directives Tsukasa OI
2022-02-23 6:58 ` Nelson Chu
2022-01-11 10:59 ` [PATCH 2/6] RISC-V: Add Privileged Architecture 1.12 CSRs Tsukasa OI
2022-02-23 6:58 ` Nelson Chu
2022-02-24 2:35 ` Tsukasa OI
2022-02-24 6:05 ` Nelson Chu
2022-01-11 10:59 ` [PATCH 3/6] RISC-V: Add Privileged Arch 1.12 CSR testcases Tsukasa OI
2022-02-23 6:58 ` Nelson Chu [this message]
2022-01-11 10:59 ` [PATCH 4/6] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-01-11 10:59 ` [PATCH 5/6] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-01-11 10:59 ` [PATCH 6/6] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-02-24 12:10 ` [PATCH 0/3] RISC-V: Add CSRs for several supervisor extensions Tsukasa OI
2022-02-24 12:10 ` [PATCH 1/3] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-02-25 6:32 ` Nelson Chu
2022-02-25 6:35 ` Tsukasa OI
2022-02-25 10:51 ` Tsukasa OI
2022-03-02 4:34 ` Nelson Chu
2022-02-24 12:10 ` [PATCH 2/3] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-02-24 12:10 ` [PATCH 3/3] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-05-24 9:35 ` [PATCH v2 0/3] RISC-V: Add CSRs for several supervisor extensions Tsukasa OI
2022-05-24 9:35 ` [PATCH v2 1/3] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-05-24 9:35 ` [PATCH v2 2/3] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-05-24 9:35 ` [PATCH v2 3/3] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-06-24 2:51 ` [PATCH v3 0/4] RISC-V: Add CSRs for several supervisor extensions Tsukasa OI
2022-06-24 2:51 ` [PATCH v3 1/4] RISC-V: Add new CSR feature gate handling (RV32,H) Tsukasa OI
2022-06-24 2:51 ` [PATCH v3 2/4] RISC-V: Add 'Smstateen' extension and its CSRs Tsukasa OI
2022-06-24 2:51 ` [PATCH v3 3/4] RISC-V: Add 'Sscofpmf' extension with " Tsukasa OI
2022-06-24 2:51 ` [PATCH v3 4/4] RISC-V: Add 'Sstc' extension and " Tsukasa OI
2022-06-28 1:40 ` [PATCH v3 0/4] RISC-V: Add CSRs for several supervisor extensions Nelson Chu
2022-06-28 5:33 ` Tsukasa OI
2022-06-28 6:56 ` Nelson Chu
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=CAJYME4H-aWX9PyGcko4FdgqRFEY_1HHJ-zeLyPBoZdR9w6pFWA@mail.gmail.com \
--to=nelson.chu@sifive.com \
--cc=binutils@sourceware.org \
--cc=research_trasio@irq.a4lg.com \
/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).