Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark c0-authorized loads and stores as extensible #403

Merged
merged 5 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/insns/amo_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ include::wavedrom/amo.adoc[]

{cheri_cap_mode_name} Description::
Standard atomic instructions, authorised by the capability in `cs1`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Standard atomic instructions, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 2 additions & 0 deletions src/insns/amoswap_32bit_cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ include::wavedrom/amoswap_cap.adoc[]

{cheri_cap_mode_name} Description::
Atomic swap of capability type, authorised by the capability in `cs1`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Atomic swap of capability type, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 2 additions & 0 deletions src/insns/hypv-virt-load-cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ translation and protection, and endianness, that apply to memory accesses in
either VS-mode or VU-mode. The effective address is the address of `cs1`. The
authorising capability for the operation is `cs1`. A copy of the loaded value
is written to `cd`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Load a CLEN+1 bit value from memory as though V=1; i.e., with the address
Expand Down
2 changes: 2 additions & 0 deletions src/insns/hypv-virt-load.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ protection, and endianness, that apply to memory accesses in either VS-mode or
VU-mode. The effective address is the address of `cs1`. The authorising
capability for the operation is `cs1`. A copy of the loaded value is written to
`rd`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Performs a load as though V=1; i.e., with the address translation and
Expand Down
2 changes: 2 additions & 0 deletions src/insns/hypv-virt-loadx.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ translation and protection, and endianness, that apply to memory access in
either VS-mode or VU-mode. The effective address is the address of `cs1`. The
authorising capability for the operation is `cs1`. A copy of the loaded value
is written to `rd`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Performs a load with the *execute* permission taking the place of *read*
Expand Down
2 changes: 2 additions & 0 deletions src/insns/hypv-virt-store-cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ accesses in either VS-mode or VU-mode. The effective address is the address of
`cs1`. The authorising capability for the operation is `cs1`. The capability
written to memory has the tag set to 0 if the tag of `cs2` is 0 or `cs1` does
not grant <<c_perm>>.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Store a CLEN+1 bit value in `cs2` to memory as though V=1; i.e., with the
Expand Down
2 changes: 2 additions & 0 deletions src/insns/hypv-virt-store.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ VU-mode. The effective address is the address of `cs1`. The authorising
capability for the operation is `cs1`. A copy of `rs2` is written to memory at
the location indicated by the effective address and the tag bit of each block
of memory naturally aligned to CLEN/8 is cleared.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Performs a store as though V=1; i.e., with address translation and protection,
Expand Down
2 changes: 2 additions & 0 deletions src/insns/load_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ Load integer data of the indicated size (byte, halfword, word, double-word)
from memory. The effective address of the load is obtained by adding the
sign-extended 12-bit offset to the address of `cs1`. The authorising capability
for the operation is `cs1`. A copy of the loaded value is written to `rd`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Load integer data of the indicated size (byte, halfword, word, double-word)
Expand Down
2 changes: 2 additions & 0 deletions src/insns/load_32bit_cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ include::wavedrom/loadcap.adoc[]

{cheri_cap_mode_name} Description::
Load a CLEN+1 bit value from memory and writes it to `cd`. The capability in `cs1` authorizes the operation. The effective address of the memory access is obtained by adding the address of `cs1` to the sign-extended 12-bit offset.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Loads a CLEN+1 bit value from memory and writes it to `cd`. The capability
Expand Down
2 changes: 2 additions & 0 deletions src/insns/load_32bit_fp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ include::wavedrom/fpload.adoc[]

{cheri_cap_mode_name} Description::
Standard floating point load instructions, authorised by the capability in `cs1`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Standard floating point load instructions, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 2 additions & 0 deletions src/insns/load_res_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ include::wavedrom/load_res.adoc[]

{cheri_cap_mode_name} Description::
Load reserved instructions, authorised by the capability in `cs1`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Load reserved instructions, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 2 additions & 0 deletions src/insns/load_res_cap_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ include::wavedrom/load_res_cap.adoc[]
{cheri_cap_mode_name} Description::
Load reserved instructions, authorised by the capability in `cs1`.
All misaligned load reservations cause a load address misaligned exception to allow software emulation (Zam extension, see cite:[riscv-unpriv-spec]).
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Load reserved instructions, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 2 additions & 0 deletions src/insns/load_store_c0.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NOTE: Any instance of this instruction with a `cs1` of `c0` will certainly trap (with a CHERI tag violation), as `c0` is defined to always hold a <<null-cap>> capability.
tariqkurd-repo marked this conversation as resolved.
Show resolved Hide resolved
As such, the encodings with a `cs1` of `c0` are RESERVED for use by future extensions.
2 changes: 2 additions & 0 deletions src/insns/store_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ sign-extended 12-bit offset to the address of `cs1`. The authorising capability
for the operation is `cs1`. A copy of `rs2` is written to memory at the
location indicated by the effective address and the tag bit of each block of
memory naturally aligned to CLEN/8 is cleared.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Store integer data of the indicated size (byte, halfword, word, double-word) to
Expand Down
2 changes: 2 additions & 0 deletions src/insns/store_32bit_cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ authorizes the operation. The effective address of the memory access is
obtained by adding the address of `cs1` to the sign-extended 12-bit offset. The
capability written to memory has the tag set to 0 if the tag of `cs2` is 0 or
`cs1` does not grant <<c_perm>>.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Store the CLEN+1 bit value in `cs2` to memory. The capability
Expand Down
2 changes: 2 additions & 0 deletions src/insns/store_32bit_fp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ include::wavedrom/fpstore.adoc[]

{cheri_cap_mode_name} Description::
Standard floating point store instructions, authorised by the capability in `cs1`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Standard floating point store instructions, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 2 additions & 0 deletions src/insns/store_cond_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ include::wavedrom/store_cond.adoc[]

{cheri_cap_mode_name} Description::
Store conditional instructions, authorised by the capability in `cs1`.
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Store conditional instructions, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 2 additions & 0 deletions src/insns/store_cond_cap_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ include::wavedrom/store_cond_cap.adoc[]
{cheri_cap_mode_name} Description::
Store conditional instructions, authorised by the capability in `cs1`.
All misaligned store conditionals cause a store/AMO address misaligned exception to allow software emulation (Zam extension, see cite:[riscv-unpriv-spec]).
+
include::load_store_c0.adoc[]

{cheri_int_mode_name} Description::
Store conditional instructions, authorised by the capability in <<ddc>>.
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/amo.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'AMO=0101111'], type: 8},
{bits: 5, name: 'rd', attr: ['5', 'rdest[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', '.W=010', 'rv64: .D=011'], type: 8},
{bits: 5, name: 'rs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs2', attr: ['5', 'src'], type: 4},
{bits: 1, name: 'rl', attr: ['1', 'rl'], type: 4},
{bits: 1, name: 'aq', attr: ['1', 'aq'], type: 4},
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/amoswap_cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'AMO=0101111'], type: 8},
{bits: 5, name: 'cd', attr: ['5', 'rdest[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', 'width', '.C=100'], type: 8},
{bits: 5, name: 'cs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'cs1!=0', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'cs2', attr: ['5', 'src'], type: 4},
{bits: 1, name: 'rl', attr: ['1', 'rl'], type: 4},
{bits: 1, name: 'aq', attr: ['1', 'aq'], type: 4},
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/fpload.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{bits: 7, name: 'opcode', attr: ['7','LOAD-FP=0000111'], type: 8},
{bits: 5, name: 'frd', attr: ['5','dest'], type: 2},
{bits: 3, name: 'width', attr: ['3','FLD=011','FLW=010', 'FLH=001'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5','base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5','base'], type: 4},
{bits: 12, name: 'imm[11:0]', attr: ['12','offset[11:0]'], type: 3},
]}
....
2 changes: 1 addition & 1 deletion src/insns/wavedrom/fpstore.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{bits: 7, name: 'opcode', attr: ['7','STORE-FP=0100111'], type: 8},
{bits: 5, name: 'imm[4:0]', attr: ['5','offset[4:0]'], type: 3},
{bits: 3, name: 'width', attr: ['3','FSD=011','FSW=010', 'FSH=001'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5','base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5','base'], type: 4},
{bits: 5, name: 'fs2', attr: ['5','src'], type: 4},
{bits: 7, name: 'imm[11:5]', attr: ['7','offset[11:5]'], type: 3},
]}
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/hypv-virt-load-cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{bits: 7, name: 0x73, attr: ['7'], type: 8},
{bits: 5, name: 'cd', attr: ['5'], type: 2},
{bits: 3, name: 0x4, attr: ['3'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'type', attr: ['5', 'HLV.C=00000'], type: 3},
{bits: 7, name: 'funct7', attr: ['7', 'HLV.C=0111000'], type: 3},
]}
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/hypv-virt-load.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{bits: 7, name: 0x73, attr: ['7'], type: 8},
{bits: 5, name: 'rd', attr: ['5'], type: 2},
{bits: 3, name: 0x4, attr: ['3'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'type', attr: ['5', 'HLV.B=00000', 'HLV.BU=00001', 'HLV.H=00000', 'HLV.HU=00001', 'HLV.W=00000', 'HLV.WU=00001', 'HLV.D=00000'], type: 3},
{bits: 7, name: 'funct7', attr: ['7', 'HLV.B=0110000', 'HLV.BU=0110000', 'HLV.H=0110010', 'HLV.HU=0110010', 'HLV.W=0110100', 'HLV.WU=0110100', 'HLV.D=0110110'], type: 3},
]}
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/hypv-virt-loadx.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{bits: 7, name: 0x73, attr: ['7'], type: 8},
{bits: 5, name: 'rd', attr: ['5', 'dest'], type: 2},
{bits: 3, name: 0x4, attr: ['3'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'src1'], type: 4},
{bits: 5, name: 0x3, attr: ['5'], type: 3},
{bits: 7, name: 'funct7', attr: ['7', 'HLVX.HU=0110010', 'HLVX.WU=0110100'], type: 3},
]}
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/hypv-virt-store-cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{bits: 7, name: 0x73, attr: ['7'], type: 8},
{bits: 5, name: 0x0, attr: ['5'], type: 2},
{bits: 3, name: 0x4, attr: ['3'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'cs2', attr: ['5', 'src2'], type: 3},
{bits: 7, name: 'funct7', attr: ['7', 'HSV.C=0111001'], type: 3},
]}
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/hypv-virt-store.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{bits: 7, name: 0x73, attr: ['7'], type: 8},
{bits: 5, name: 0x0, attr: ['5'], type: 2},
{bits: 3, name: 0x4, attr: ['3'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'src1'], type: 4},
{bits: 5, name: 'rs2', attr: ['5', 'src2'], type: 3},
{bits: 7, name: 'funct7', attr: ['7', 'HSV.B=0110001', 'HSV.H=0110011', 'HSV.W=0110101', 'HSV.D=0110111'], type: 3},
]}
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/load.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'LOAD=0000011'], type: 8},
{bits: 5, name: 'rd', attr: ['5', 'dest'], type: 2},
{bits: 3, name: 'funct3', attr: ['3', 'width', 'LB=000', 'LH=001', 'LW=010', 'LBU=100', 'LHU=101', 'rv64: LWU=110', 'rv64: LD=011'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 12, name: 'imm[11:0]', attr: ['12', 'offset[11:0]'], type: 3},
]}
....
2 changes: 1 addition & 1 deletion src/insns/wavedrom/load_res.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'AMO=0101111'], type: 8},
{bits: 5, name: 'rd', attr: ['5', 'rdest[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', '.B=000', '.H=001', '.W=010', 'rv64: .D=011'], type: 8},
{bits: 5, name: 'rs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs2', attr: ['5', 'LR.*=00000'], type: 4},
{bits: 1, name: 'rl', attr: ['1', 'rl'], type: 4},
{bits: 1, name: 'aq', attr: ['1', 'aq'], type: 4},
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/load_res_cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'AMO=0101111'], type: 8},
{bits: 5, name: 'cd', attr: ['5', 'rdest[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', '.C=100'], type: 8},
{bits: 5, name: 'cs1/rs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 5, name: 'funct5', attr: ['5', 'LR.*=00000'], type: 4},
{bits: 1, name: 'rl', attr: ['1', 'rl'], type: 4},
{bits: 1, name: 'aq', attr: ['1', 'aq'], type: 4},
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/loadcap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'MISCMEM=0001111','LOAD=0000011',], type: 8},
{bits: 5, name: 'cd', attr: ['5', 'dest'], type: 2},
{bits: 3, name: 'funct3', attr: ['3', 'LC=100'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 12, name: 'imm[11:0]', attr: ['12', 'offset[11:0]'], type: 3},
]}
....
2 changes: 1 addition & 1 deletion src/insns/wavedrom/store.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'STORE=0100011'], type: 8},
{bits: 5, name: 'imm[4:0]', attr: ['5', 'offset[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', 'SB=000','SH=001','SW=010','rv64: SD=011'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs2', attr: ['5', 'src'], type: 4},
{bits: 7, name: 'imm[11:5]', attr: ['7', 'offset[11:5]'], type: 3},
]}
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/store_cond.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'AMO=0101111'], type: 8},
{bits: 5, name: 'rd', attr: ['5', 'rdest[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', 'width', '.B=000','.H=001','.W=010', 'rv64: .D=011'], type: 8},
{bits: 5, name: 'rs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs2', attr: ['5', 'src'], type: 4},
{bits: 1, name: 'rl', attr: ['1', 'rl'], type: 4},
{bits: 1, name: 'aq', attr: ['1', 'aq'], type: 4},
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/store_cond_cap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'AMO=0101111'], type: 8},
{bits: 5, name: 'rd', attr: ['5', 'rdest[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', 'width', '.C=100'], type: 8},
{bits: 5, name: 'cs1/rs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 5, name: 'cs2', attr: ['5', 'src'], type: 4},
{bits: 1, name: 'rl', attr: ['1', 'rl'], type: 4},
{bits: 1, name: 'aq', attr: ['1', 'aq'], type: 4},
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/storecap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{bits: 7, name: 'opcode', attr: ['7', 'STORE=0100011'], type: 8},
{bits: 5, name: 'imm[4:0]', attr: ['5', 'offset[4:0]'], type: 3},
{bits: 3, name: 'funct3', attr: ['3', 'SC=100'], type: 8},
{bits: 5, name: 'rs1/cs1', attr: ['5', 'base'], type: 4},
{bits: 5, name: 'rs1/cs1!=0',attr: ['5', 'base'], type: 4},
{bits: 5, name: 'cs2', attr: ['5', 'src'], type: 4},
{bits: 7, name: 'imm[11:5]', attr: ['7', 'offset[11:5]'], type: 3},
]}
Expand Down