Skip to content

fix(data): fix field names to be closer to operands #872

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
128 changes: 35 additions & 93 deletions backends/instructions_appendix/all_instructions.golden.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7146,9 +7146,6 @@ Included in::
Synopsis::
No synopsis available

Assembly::
dret dret

Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
Expand Down Expand Up @@ -15642,9 +15639,6 @@ Included in::
Synopsis::
Machine mode resume from the RNMI or Double Trap handler

Assembly::
mnret mnret

Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
Expand Down Expand Up @@ -17191,9 +17185,6 @@ Included in::
Synopsis::
No synopsis available

Assembly::
sctrclr sctrclr

Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
Expand Down Expand Up @@ -19593,60 +19584,35 @@ Included in::
|===


[#udb:doc:inst:sspopchk_x1]
== sspopchk.x1
[#udb:doc:inst:sspopchk]
== sspopchk

Synopsis::
No synopsis available
Shadow Stack Pop

Assembly::
sspopchk.x1 sspopchk_x1
sspopchk xs1

Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"reg":[{"bits":32,"name": 0xcdc0c073,"type":2}]}
{"reg":[{"bits":15,"name": 0x4073,"type":2},{"bits":5,"name": "xs1 != {0,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}","type":4},{"bits":12,"name": 0xcdc,"type":2}]}
....

Description::
No description available.
A shadow stack pop operation is defined as an XLEN wide read from the current
top of the shadow stack followed by an increment of the ssp by XLEN/8.

Only x1 and x5 registers are supported as xs1 for SSPOPCHK.

Decode Variables::
sspopchk.x1 has no decode variables.

Included in::
[options="autowrap,autowidth"]
Decode Variables::
[width="100%", cols="1,2", options="header"]
|===
| Extension | Version

| *Zicfiss* | ~> 1.0.0

|Variable Name |Location
|xs1 |$encoding[19:15]
|===


[#udb:doc:inst:sspopchk_x5]
== sspopchk.x5

Synopsis::
No synopsis available

Assembly::
sspopchk.x5 sspopchk_x5

Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"reg":[{"bits":32,"name": 0xcdc2c073,"type":2}]}
....

Description::
No description available.


Decode Variables::
sspopchk.x5 has no decode variables.

Included in::
[options="autowrap,autowidth"]
|===
Expand All @@ -19657,60 +19623,36 @@ Included in::
|===


[#udb:doc:inst:sspush_x1]
== sspush.x1
[#udb:doc:inst:sspush]
== sspush

Synopsis::
No synopsis available
Shadow Stack Push

Assembly::
sspush.x1 sspush_x1
sspush xs2

Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"reg":[{"bits":32,"name": 0xce104073,"type":2}]}
{"reg":[{"bits":20,"name": 0x4073,"type":2},{"bits":5,"name": "xs2 != {0,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}","type":4},{"bits":7,"name": 0x67,"type":2}]}
....

Description::
No description available.
A shadow stack push operation is defined as decrement of the ssp by XLEN/8
followed by a store of the value in the link register to memory at the new
top of the shadow stack.

Only x1 and x5 registers are supported as xs2 for SSPUSH.

Decode Variables::
sspush.x1 has no decode variables.

Included in::
[options="autowrap,autowidth"]
Decode Variables::
[width="100%", cols="1,2", options="header"]
|===
| Extension | Version

| *Zicfiss* | ~> 1.0.0

|Variable Name |Location
|xs2 |$encoding[24:20]
|===


[#udb:doc:inst:sspush_x5]
== sspush.x5

Synopsis::
No synopsis available

Assembly::
sspush.x5 sspush_x5

Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"reg":[{"bits":32,"name": 0xce504073,"type":2}]}
....

Description::
No description available.


Decode Variables::
sspush.x5 has no decode variables.

Included in::
[options="autowrap,autowidth"]
|===
Expand Down Expand Up @@ -20641,7 +20583,7 @@ vaeskf1.vi vd, vs2, imm
Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"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}]}
{"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}]}
....

Description::
Expand All @@ -20653,7 +20595,7 @@ Decode Variables::
|===
|Variable Name |Location
|vs2 |$encoding[24:20]
|zimm5 |$encoding[19:15]
|imm |$encoding[19:15]
|vd |$encoding[11:7]
|===

Expand All @@ -20679,7 +20621,7 @@ vaeskf2.vi vd, vs2, imm
Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"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}]}
{"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}]}
....

Description::
Expand All @@ -20691,7 +20633,7 @@ Decode Variables::
|===
|Variable Name |Location
|vs2 |$encoding[24:20]
|zimm5 |$encoding[19:15]
|imm |$encoding[19:15]
|vd |$encoding[11:7]
|===

Expand Down Expand Up @@ -38558,7 +38500,7 @@ vsm3c.vi vd, vs2, imm
Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"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}]}
{"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}]}
....

Description::
Expand All @@ -38570,7 +38512,7 @@ Decode Variables::
|===
|Variable Name |Location
|vs2 |$encoding[24:20]
|zimm5 |$encoding[19:15]
|imm |$encoding[19:15]
|vd |$encoding[11:7]
|===

Expand Down Expand Up @@ -38638,7 +38580,7 @@ vsm4k.vi vd, vs2, imm
Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"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}]}
{"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}]}
....

Description::
Expand All @@ -38650,7 +38592,7 @@ Decode Variables::
|===
|Variable Name |Location
|vs2 |$encoding[24:20]
|zimm5 |$encoding[19:15]
|imm |$encoding[19:15]
|vd |$encoding[11:7]
|===

Expand Down Expand Up @@ -45241,7 +45183,7 @@ vwsll.vi vd, vs2, imm, vm
Encoding::
[wavedrom, ,svg,subs='attributes',width="100%"]
....
{"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}]}
{"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}]}
....

Description::
Expand All @@ -45254,7 +45196,7 @@ Decode Variables::
|Variable Name |Location
|vm |$encoding[25]
|vs2 |$encoding[24:20]
|zimm5 |$encoding[19:15]
|imm |$encoding[19:15]
|vd |$encoding[11:7]
|===

Expand Down
2 changes: 1 addition & 1 deletion spec/std/isa/inst/Sdext/dret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ long_name: No synopsis available
description: |
No description available.
definedBy: Sdext
assembly: dret
assembly: ""
encoding:
match: "01111011001000000000000001110011"
variables: []
Expand Down
2 changes: 1 addition & 1 deletion spec/std/isa/inst/Smdbltrp/sctrclr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ long_name: No synopsis available
description: |
No description available.
definedBy: Smdbltrp
assembly: sctrclr
assembly: ""
encoding:
match: "00010000010000000000000001110011"
variables: []
Expand Down
2 changes: 1 addition & 1 deletion spec/std/isa/inst/Smrnmi/mnret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: |
also sets mstatus.MPRV to 0. If the Zicfilp extension is implemented, then if the new privileged mode is
y, MNRET sets ELP to the logical AND of yLPE (see Section 22.1.1) and mnstatus.MNPELP.
definedBy: Smrnmi
assembly: mnret
assembly: ""
encoding:
match: "01110000001000000000000001110011"
variables: []
Expand Down
23 changes: 0 additions & 23 deletions spec/std/isa/inst/Zicfiss/sspopchk.x1.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions spec/std/isa/inst/Zicfiss/sspopchk.x5.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions spec/std/isa/inst/Zicfiss/sspopchk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# yaml-language-server: $schema=../../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: instruction
name: sspopchk
long_name: Shadow Stack Pop
description: |
A shadow stack pop operation is defined as an XLEN wide read from the current
top of the shadow stack followed by an increment of the ssp by XLEN/8.

Only x1 and x5 registers are supported as xs1 for SSPOPCHK.
definedBy: Zicfiss
assembly: xs1
encoding:
match: 110011011100-----100000001110011
variables:
- name: xs1
location: 19-15
# prettier-ignore
not: [ 0, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ]
access:
s: always
u: always
vs: always
vu: always
data_independent_timing: false
operation(): |
23 changes: 0 additions & 23 deletions spec/std/isa/inst/Zicfiss/sspush.x1.yaml

This file was deleted.

Loading
Loading