Skip to content

Commit c0954d2

Browse files
authored
Merge branch 'main' into dhower-qc/issue159
Signed-off-by: Derek Hower <[email protected]>
2 parents 8aab449 + a5dce13 commit c0954d2

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
.yardoc
77
.stamps
88
.venv
9+
.asciidoctor
10+
diag-ditaa-*
11+
arch/manual/isa/**/riscv-isa-manual
912
gen
1013
node_modules
1114
_site

arch/csr/menvcfg.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ menvcfg:
246246
definedBy: Zicbom
247247
type: RW-R
248248
sw_write(csr_value): |
249-
if (csr_value.CBIE == 0 || csr_value.CBIE == 1 || csr_value.CBIE == 3) {
249+
if ((csr_value.CBIE == 0) ||
250+
(ALLOW_CBO_INVAL_UPGRADE_TO_FLUSH && (csr_value.CBIE == 1)) ||
251+
(csr_value.CBIE == 3)) {
250252
return csr_value.CBIE;
251253
} else {
252254
return CSR[menvcfg].CBIE;

arch/ext/Zicbom.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,13 @@ Zicbom:
1414
The observable size of a cache block, in bytes
1515
also_defined_in: [Zicboz, Zicbop]
1616
schema:
17-
type: integer
17+
type: integer
18+
ALLOW_CBO_INVAL_UPGRADE_TO_FLUSH:
19+
description: |
20+
When true, an implementation can (when `menvcfg.CBIE` == `01`) upgrade a `cbo.inval`
21+
instruction to a `cbo.flush`.
22+
23+
When false, an implementation does not support the upgrade, and the value '01' cannot be
24+
written to `menvcfg.CBIE`.
25+
schema:
26+
type: boolean

arch/isa/globals.isa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ enum PmaAttribute {
8989

9090
enum Pbmt {
9191
PMA 0 # Use underlying PMA
92-
NV 1 # Non-cacheable, idempotent, weakly-ordered (RVWMO), main memory
92+
NC 1 # Non-cacheable, idempotent, weakly-ordered (RVWMO), main memory
9393
IO 2 # Non-cacheable, non-idempotent, strongly (channel 0) ordered, I/O
9494
}
9595

backends/profile_doc/tasks.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ end
8181

8282
namespace :gen do
8383
desc "Create a specification PDF for +profile_family+"
84-
task :profile_pdf, [:profile_family] => ["gen:arch"] do |_t, args|
84+
task :profile_pdf, [:profile_family] => ["#{$root}/.stamps/arch-gen-_64.stamp"] do |_t, args|
8585
family_name = args[:profile_family]
8686
raise ArgumentError, "Missing required option +profile_family+" if family_name.nil?
8787

@@ -92,7 +92,7 @@ namespace :gen do
9292
end
9393

9494
desc "Create a specification HTML for +profile_family+"
95-
task :profile_html, [:profile_family] => ["gen:arch"] do |_t, args|
95+
task :profile_html, [:profile_family] => ["#{$root}/.stamps/arch-gen-_64.stamp"] do |_t, args|
9696
family_name = args[:profile_family]
9797
raise ArgumentError, "Missing required option +profile_family+" if family_name.nil?
9898

cfgs/generic_rv64/params.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,3 +517,5 @@ params:
517517
MSTATUS_VS_WRITEABLE: true
518518
MSTATUS_VS_LEGAL_VALUES: [0,1,2,3]
519519
HW_MSTATUS_VS_DIRTY_UPDATE: precise
520+
ALLOW_CBO_INVAL_UPGRADE_TO_FLUSH: true
521+

0 commit comments

Comments
 (0)