Skip to content

Commit f0a328f

Browse files
authored
fix(data): CBO instructions need parentheses around address register (#805)
1 parent 42acc68 commit f0a328f

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

arch/inst/Zicbom/cbo.clean.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ description: |
3636
CBO operations never raise a misaligned address fault.
3737
3838
definedBy: Zicbom
39-
assembly: xs1
39+
assembly: (xs1)
4040
encoding:
4141
match: 000000000001-----010000000001111
4242
variables:
43-
- name: rs1
43+
- name: xs1
4444
location: 19-15
4545
access:
4646
m: always
@@ -67,6 +67,6 @@ access_detail: |
6767
!===
6868
6969
# operation(): |
70-
# let cache_block_address = X[rs1] & ~(CACHE_BLOCK_SIZE-1);
70+
# let cache_block_address = X[xs1] & ~(CACHE_BLOCK_SIZE-1);
7171

7272
# CACHE_BLOCK_CLEAN(cache_block_address);

arch/inst/Zicbom/cbo.flush.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ description: |
2929
3030
CBO operations never raise a misaligned address fault.
3131
definedBy: Zicbom
32-
assembly: xs1
32+
assembly: (xs1)
3333
encoding:
3434
match: 000000000010-----010000000001111
3535
variables:
36-
- name: rs1
36+
- name: xs1
3737
location: 19-15
3838
access:
3939
m: always
@@ -60,7 +60,7 @@ access_detail: |
6060
!===
6161
6262
# operation(): |
63-
# XReg cache_block_address = X[rs1] & ~(CACHE_BLOCK_SIZE-1);
63+
# XReg cache_block_address = X[xs1] & ~(CACHE_BLOCK_SIZE-1);
6464
# Boolean has_fault?;
6565
# ExceptionCode code;
6666

arch/inst/Zicbom/cbo.inval.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ description: |
6868
6969
CBO operations never raise a misaligned address fault.
7070
definedBy: Zicbom
71-
assembly: xs1
71+
assembly: (xs1)
7272
encoding:
7373
match: 000000000000-----010000000001111
7474
variables:
75-
- name: rs1
75+
- name: xs1
7676
location: 19-15
7777
access:
7878
m: always
@@ -103,7 +103,7 @@ access_detail: |
103103
!===
104104
105105
# operation(): |
106-
# let cache_block_address = X[RS1] & ~(CACHE_BLOCK_SIZE-1);
106+
# let cache_block_address = X[xs1] & ~(CACHE_BLOCK_SIZE-1);
107107

108108
# // zeroing operation can occur in any number of independent stores
109109
# for (i=0; i<CACHE_BLOCK_SIZE; i++) {

arch/inst/Zicboz/cbo.zero.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ description: |
3131
3232
CBO operations never raise a misaligned address fault.
3333
definedBy: Zicboz
34-
assembly: xs1
34+
assembly: (xs1)
3535
encoding:
3636
match: 000000000100-----010000000001111
3737
variables:
38-
- name: rs1
38+
- name: xs1
3939
location: 19-15
4040
access:
4141
m: always
@@ -70,7 +70,7 @@ operation(): |
7070
raise(ExceptionCode::VirtualInstruction, mode(), $encoding);
7171
} else {
7272
XReg mask = CACHE_BLOCK_SIZE - 1;
73-
XReg cache_block_vaddr = X[rs1] & ~mask;
73+
XReg cache_block_vaddr = X[xs1] & ~mask;
7474
7575
TranslationResult result;
7676
result = translate(cache_block_vaddr, MemoryOperation::Write, effective_ldst_mode(), $encoding);

backends/instructions_appendix/all_instructions.golden.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5234,7 +5234,7 @@ Cache Block Clean
52345234
Encoding::
52355235
[wavedrom, ,svg,subs='attributes',width="100%"]
52365236
....
5237-
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "rs1","type":4},{"bits":12,"name": 0x1,"type":2}]}
5237+
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "xs1","type":4},{"bits":12,"name": 0x1,"type":2}]}
52385238
....
52395239

52405240
Description::
@@ -5273,7 +5273,7 @@ Decode Variables::
52735273
[width="100%", cols="1,2", options="header"]
52745274
|===
52755275
|Variable Name |Location
5276-
|rs1 |$encoding[19:15]
5276+
|xs1 |$encoding[19:15]
52775277
|===
52785278

52795279
Included in::
@@ -5295,7 +5295,7 @@ Cache Block Flush
52955295
Encoding::
52965296
[wavedrom, ,svg,subs='attributes',width="100%"]
52975297
....
5298-
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "rs1","type":4},{"bits":12,"name": 0x2,"type":2}]}
5298+
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "xs1","type":4},{"bits":12,"name": 0x2,"type":2}]}
52995299
....
53005300

53015301
Description::
@@ -5328,7 +5328,7 @@ Decode Variables::
53285328
[width="100%", cols="1,2", options="header"]
53295329
|===
53305330
|Variable Name |Location
5331-
|rs1 |$encoding[19:15]
5331+
|xs1 |$encoding[19:15]
53325332
|===
53335333

53345334
Included in::
@@ -5350,7 +5350,7 @@ Cache Block Invalidate
53505350
Encoding::
53515351
[wavedrom, ,svg,subs='attributes',width="100%"]
53525352
....
5353-
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "rs1","type":4},{"bits":12,"name": 0x0,"type":2}]}
5353+
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "xs1","type":4},{"bits":12,"name": 0x0,"type":2}]}
53545354
....
53555355

53565356
Description::
@@ -5422,7 +5422,7 @@ Decode Variables::
54225422
[width="100%", cols="1,2", options="header"]
54235423
|===
54245424
|Variable Name |Location
5425-
|rs1 |$encoding[19:15]
5425+
|xs1 |$encoding[19:15]
54265426
|===
54275427

54285428
Included in::
@@ -5444,7 +5444,7 @@ Cache Block Zero
54445444
Encoding::
54455445
[wavedrom, ,svg,subs='attributes',width="100%"]
54465446
....
5447-
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "rs1","type":4},{"bits":12,"name": 0x4,"type":2}]}
5447+
{"reg":[{"bits":15,"name": 0x200f,"type":2},{"bits":5,"name": "xs1","type":4},{"bits":12,"name": 0x4,"type":2}]}
54485448
....
54495449

54505450
Description::
@@ -5479,7 +5479,7 @@ Decode Variables::
54795479
[width="100%", cols="1,2", options="header"]
54805480
|===
54815481
|Variable Name |Location
5482-
|rs1 |$encoding[19:15]
5482+
|xs1 |$encoding[19:15]
54835483
|===
54845484

54855485
Included in::

0 commit comments

Comments
 (0)