Skip to content

Commit 63571de

Browse files
authored
fix(data): fix field names to be closer to operands (riscv-software-src#872)
- `dret`, `mnret`, and `sctrclr` take no operands. - ~~`sspush` and `sspopchk` are each single mnemonics that take a very restricted set of operand values. Also include a bit of documentation.~~ - `vaeskf1.vi`, `vaeskf2.vi`, `vsm3c.vi`, `vsm4k.vi`, `vwsll.vi`: renamed field to match operand.
1 parent 5f9751d commit 63571de

File tree

9 files changed

+19
-28
lines changed

9 files changed

+19
-28
lines changed

backends/instructions_appendix/all_instructions.golden.adoc

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= Instruction Appendix
22
:doctype: book
3-
:wavedrom: /workspaces/riscv-unified-db/node_modules/.bin/wavedrom-cli
3+
:wavedrom: /workspace/riscv-unified-db/node_modules/.bin/wavedrom-cli
44
// Now the document header is complete and the wavedrom attribute is active.
55

66

@@ -7146,9 +7146,6 @@ Included in::
71467146
Synopsis::
71477147
No synopsis available
71487148

7149-
Assembly::
7150-
dret dret
7151-
71527149
Encoding::
71537150
[wavedrom, ,svg,subs='attributes',width="100%"]
71547151
....
@@ -15762,9 +15759,6 @@ Included in::
1576215759
Synopsis::
1576315760
Machine mode resume from the RNMI or Double Trap handler
1576415761

15765-
Assembly::
15766-
mnret mnret
15767-
1576815762
Encoding::
1576915763
[wavedrom, ,svg,subs='attributes',width="100%"]
1577015764
....
@@ -17311,9 +17305,6 @@ Included in::
1731117305
Synopsis::
1731217306
No synopsis available
1731317307

17314-
Assembly::
17315-
sctrclr sctrclr
17316-
1731717308
Encoding::
1731817309
[wavedrom, ,svg,subs='attributes',width="100%"]
1731917310
....
@@ -20761,7 +20752,7 @@ vaeskf1.vi vd, vs2, imm
2076120752
Encoding::
2076220753
[wavedrom, ,svg,subs='attributes',width="100%"]
2076320754
....
20764-
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "zimm5","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x45,"type":2}]}
20755+
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "imm","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x45,"type":2}]}
2076520756
....
2076620757

2076720758
Description::
@@ -20773,7 +20764,7 @@ Decode Variables::
2077320764
|===
2077420765
|Variable Name |Location
2077520766
|vs2 |$encoding[24:20]
20776-
|zimm5 |$encoding[19:15]
20767+
|imm |$encoding[19:15]
2077720768
|vd |$encoding[11:7]
2077820769
|===
2077920770

@@ -20799,7 +20790,7 @@ vaeskf2.vi vd, vs2, imm
2079920790
Encoding::
2080020791
[wavedrom, ,svg,subs='attributes',width="100%"]
2080120792
....
20802-
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "zimm5","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x55,"type":2}]}
20793+
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "imm","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x55,"type":2}]}
2080320794
....
2080420795

2080520796
Description::
@@ -20811,7 +20802,7 @@ Decode Variables::
2081120802
|===
2081220803
|Variable Name |Location
2081320804
|vs2 |$encoding[24:20]
20814-
|zimm5 |$encoding[19:15]
20805+
|imm |$encoding[19:15]
2081520806
|vd |$encoding[11:7]
2081620807
|===
2081720808

@@ -38678,7 +38669,7 @@ vsm3c.vi vd, vs2, imm
3867838669
Encoding::
3867938670
[wavedrom, ,svg,subs='attributes',width="100%"]
3868038671
....
38681-
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "zimm5","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x57,"type":2}]}
38672+
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "imm","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x57,"type":2}]}
3868238673
....
3868338674

3868438675
Description::
@@ -38690,7 +38681,7 @@ Decode Variables::
3869038681
|===
3869138682
|Variable Name |Location
3869238683
|vs2 |$encoding[24:20]
38693-
|zimm5 |$encoding[19:15]
38684+
|imm |$encoding[19:15]
3869438685
|vd |$encoding[11:7]
3869538686
|===
3869638687

@@ -38758,7 +38749,7 @@ vsm4k.vi vd, vs2, imm
3875838749
Encoding::
3875938750
[wavedrom, ,svg,subs='attributes',width="100%"]
3876038751
....
38761-
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "zimm5","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x43,"type":2}]}
38752+
{"reg":[{"bits":7,"name": 0x77,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x2,"type":2},{"bits":5,"name": "imm","type":4},{"bits":5,"name": "vs2","type":4},{"bits":7,"name": 0x43,"type":2}]}
3876238753
....
3876338754

3876438755
Description::
@@ -38770,7 +38761,7 @@ Decode Variables::
3877038761
|===
3877138762
|Variable Name |Location
3877238763
|vs2 |$encoding[24:20]
38773-
|zimm5 |$encoding[19:15]
38764+
|imm |$encoding[19:15]
3877438765
|vd |$encoding[11:7]
3877538766
|===
3877638767

@@ -45361,7 +45352,7 @@ vwsll.vi vd, vs2, imm, vm
4536145352
Encoding::
4536245353
[wavedrom, ,svg,subs='attributes',width="100%"]
4536345354
....
45364-
{"reg":[{"bits":7,"name": 0x57,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x3,"type":2},{"bits":5,"name": "zimm5","type":4},{"bits":5,"name": "vs2","type":4},{"bits":1,"name": "vm","type":4},{"bits":6,"name": 0x35,"type":2}]}
45355+
{"reg":[{"bits":7,"name": 0x57,"type":2},{"bits":5,"name": "vd","type":4},{"bits":3,"name": 0x3,"type":2},{"bits":5,"name": "imm","type":4},{"bits":5,"name": "vs2","type":4},{"bits":1,"name": "vm","type":4},{"bits":6,"name": 0x35,"type":2}]}
4536545356
....
4536645357

4536745358
Description::
@@ -45374,7 +45365,7 @@ Decode Variables::
4537445365
|Variable Name |Location
4537545366
|vm |$encoding[25]
4537645367
|vs2 |$encoding[24:20]
45377-
|zimm5 |$encoding[19:15]
45368+
|imm |$encoding[19:15]
4537845369
|vd |$encoding[11:7]
4537945370
|===
4538045371

spec/std/isa/inst/Sdext/dret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ long_name: No synopsis available
1010
description: |
1111
No description available.
1212
definedBy: Sdext
13-
assembly: dret
13+
assembly: ""
1414
encoding:
1515
match: "01111011001000000000000001110011"
1616
variables: []

spec/std/isa/inst/Smdbltrp/sctrclr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ long_name: No synopsis available
1010
description: |
1111
No description available.
1212
definedBy: Smdbltrp
13-
assembly: sctrclr
13+
assembly: ""
1414
encoding:
1515
match: "00010000010000000000000001110011"
1616
variables: []

spec/std/isa/inst/Smrnmi/mnret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: |
1414
also sets mstatus.MPRV to 0. If the Zicfilp extension is implemented, then if the new privileged mode is
1515
y, MNRET sets ELP to the logical AND of yLPE (see Section 22.1.1) and mnstatus.MNPELP.
1616
definedBy: Smrnmi
17-
assembly: mnret
17+
assembly: ""
1818
encoding:
1919
match: "01110000001000000000000001110011"
2020
variables: []

spec/std/isa/inst/Zvbb/vwsll.vi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ encoding:
1818
location: 25-25
1919
- name: vs2
2020
location: 24-20
21-
- name: zimm5
21+
- name: imm
2222
location: 19-15
2323
- name: vd
2424
location: 11-7

spec/std/isa/inst/Zvkned/vaeskf1.vi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ encoding:
1616
variables:
1717
- name: vs2
1818
location: 24-20
19-
- name: zimm5
19+
- name: imm
2020
location: 19-15
2121
- name: vd
2222
location: 11-7

spec/std/isa/inst/Zvkned/vaeskf2.vi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ encoding:
1616
variables:
1717
- name: vs2
1818
location: 24-20
19-
- name: zimm5
19+
- name: imm
2020
location: 19-15
2121
- name: vd
2222
location: 11-7

spec/std/isa/inst/Zvks/vsm3c.vi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ encoding:
1717
variables:
1818
- name: vs2
1919
location: 24-20
20-
- name: zimm5
20+
- name: imm
2121
location: 19-15
2222
- name: vd
2323
location: 11-7

spec/std/isa/inst/Zvks/vsm4k.vi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ encoding:
1717
variables:
1818
- name: vs2
1919
location: 24-20
20-
- name: zimm5
20+
- name: imm
2121
location: 19-15
2222
- name: vd
2323
location: 11-7

0 commit comments

Comments
 (0)