Skip to content

Commit 5776c64

Browse files
authored
Merge branch 'main' into main
Signed-off-by: Shashank V M <[email protected]>
2 parents ec2d026 + f91ce90 commit 5776c64

File tree

1,388 files changed

+3431
-5110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,388 files changed

+3431
-5110
lines changed

.devcontainer/onCreateCommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

3-
npm i
3+
npm i
44
bundle install

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
exclude: ^docs/ruby/ # All generated code
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: check-symlinks
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
args: [--markdown-linebreak-ext=md]
12+
- id: check-merge-conflict
13+
args: ["--assume-in-merge"]
14+
exclude: \.adoc$ # sections titles Level 6 "=======" get flagged otherwise

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ met:
1818
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS
1919
SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
2020
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21-
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
21+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
2222
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2323
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
2424
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ namespace :test do
9898
validator.validate(f)
9999
end
100100
Rake::Task["test:insts"].invoke
101-
puts "All files validate against their schema"
101+
puts "All files validate against their schema"
102102
end
103103
task idl_model: ["gen:arch", "#{$root}/.stamps/arch-gen-_32.stamp", "#{$root}/.stamps/arch-gen-_64.stamp"] do
104104
print "Parsing IDL code for RV32..."
@@ -298,7 +298,7 @@ namespace :test do
298298
ENV["MANUAL_NAME"] = "isa"
299299
ENV["VERSIONS"] = "all"
300300
Rake::Task["gen:html_manual"].invoke
301-
301+
302302
ENV["EXT"] = "B"
303303
ENV["VERSION"] = "latest"
304304
Rake::Task["gen:ext_pdf"].invoke
@@ -371,4 +371,4 @@ namespace :gen do
371371
puts "==================================="
372372
Rake::Task["#{$root}/gen/profile_doc/pdf/MockProfileRelease.pdf"].invoke
373373
end
374-
end
374+
end

arch/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To tame this challenge, this specification generator takes the following approac
2121

2222
The architecture is specified in a series of https://en.wikipedia.org/wiki/YAML[YAML]
2323
files for _Extensions_, _Instructions_, and _Control and Status Registers (CSRs)_.
24-
Each extension/instruction/CSR has its own file.
24+
Each extension/instruction/CSR has its own file.
2525

2626
== Flow
2727

arch/certificate_class/MC.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ naming_scheme: |
2121
2222
Where:
2323
24-
* Left & right square braces denote optional.
24+
* Left & right square braces denote optional.
2525
* \<model> is a 3 digit integer. It is changed only when mandatory extensions are added to a CRD.
2626
** The one's digit is incremented when a small mandatory extension is added (e.g., Zicond)
2727
** The ten's digit is incremented when a medium mandatory extension is addded (e.g., PMP)
2828
** The hundreds's digit is incremented when a large mandatory extension is addded (e.g., V or H)
29-
* \<version> is a semantic version (see semver.org) formatted as <major>[.<minor>.[patch]]. If \<version> is omitted, the reference applies equally to all versions.
29+
* \<version> is a semantic version (see semver.org) formatted as <major>[.<minor>.[patch]]. If \<version> is omitted, the reference applies equally to all versions.
3030
** A <major> release indicates support for a new optional extension.
3131
** A <minor> release indicates one or more of the following changes to the certification tests associated with the CRD.
3232
*** Fix test bug or increase test coverage
@@ -35,4 +35,4 @@ naming_scheme: |
3535
** A <patch> release indicates just CRD specification changes without any difference in functional behavior
3636
3737
mandatory_priv_modes:
38-
- M
38+
- M

arch/certificate_model/MC100.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class:
88
$ref: certificate_class/MC.yaml#
99

1010
# Semantic versions within the model
11-
versions:
11+
versions:
1212
- version: "1.0.0"
1313

1414
# XLEN used by rakefile
@@ -139,4 +139,4 @@ extensions:
139139
const: little
140140
XLEN:
141141
schema:
142-
const: 32
142+
const: 32

arch/certificate_model/MockCertificateModel.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ base: 64
1313
# Semantic versions within the model
1414
versions:
1515
- version: "1.0.0"
16-
- version: "1.1.0"
16+
- version: "1.1.0"
1717

1818
revision_history:
1919
- revision: "0.1.0"
@@ -223,4 +223,4 @@ recommendations:
223223
- text: |
224224
Implementations are strongly recommended to raise illegal-instruction
225225
exceptions on attempts to execute unimplemented opcodes.
226-
- text: Micky should give Pluto an extra treat
226+
- text: Micky should give Pluto an extra treat

arch/csr/F/fcsr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ description: |
4242
modes are encoded as shown in <<rm>>. A value of 111 in the
4343
instruction's _rm_ field selects the dynamic rounding mode held in
4444
`frm`. The behavior of floating-point instructions that depend on
45-
rounding mode when executed with a reserved rounding mode is _reserved_, including both static reserved rounding modes (101-110) and dynamic reserved rounding modes (101-111). Some instructions, including widening conversions, have the _rm_ field but are nevertheless mathematically unaffected by the rounding mode; software should set their _rm_ field to
45+
rounding mode when executed with a reserved rounding mode is _reserved_, including both static reserved rounding modes (101-110) and dynamic reserved rounding modes (101-111). Some instructions, including widening conversions, have the _rm_ field but are nevertheless mathematically unaffected by the rounding mode; software should set their _rm_ field to
4646
RNE (000) but implementations must treat the _rm_ field as usual (in
4747
particular, with regard to decoding legal vs. reserved encodings).
4848
@@ -122,7 +122,7 @@ fields:
122122
including both static reserved rounding modes (101-110) and dynamic reserved
123123
rounding modes (101-111). Some instructions, including widening conversions,
124124
have the _rm_ field but are nevertheless mathematically unaffected by the
125-
rounding mode; software should set their _rm_ field to
125+
rounding mode; software should set their _rm_ field to
126126
RNE (000) but implementations must treat the _rm_ field as usual (in
127127
particular, with regard to decoding legal vs. reserved encodings).
128128
type: RW-H
@@ -181,4 +181,4 @@ fields:
181181
Set by hardware when a floating point operation is inexact and stays set until explicitly
182182
cleared by software.
183183
type: RW-H
184-
reset_value: UNDEFINED_LEGAL
184+
reset_value: UNDEFINED_LEGAL

arch/csr/H/henvcfg.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: |
1212
If bit `henvcfg.FIOM` (Fence of I/O implies Memory) is set to one in henvcfg, `fence`
1313
instructions executed when V=1 are modified so the requirement to order accesses to device I/O
1414
implies also the requirement to order main memory accesses.
15-
15+
1616
<<henvcfg-FIOM>> details the modified interpretation of FENCE instruction bits PI, PO, SI, and SO when
1717
FIOM=1 and V=1.
1818
@@ -71,7 +71,7 @@ description: |
7171
The Zicfiss extension adds the `SSE` field in `henvcfg`. If the `SSE` field is
7272
set to 1, the Zicfiss extension is activated in VS-mode. When the `SSE` field is
7373
0, the Zicfiss extension remains inactive in VS-mode, and the following rules
74-
apply when `V=1`:
74+
apply when `V=1`:
7575
7676
* 32-bit Zicfiss instructions will revert to their behavior as defined by Zimop.
7777
* 16-bit Zicfiss instructions will revert to their behavior as defined by Zcmop.
@@ -127,12 +127,12 @@ fields:
127127
128128
The PBMTE bit controls whether the `Svpbmt` extension is available for use in VS-stage
129129
address translation.
130-
130+
131131
When PBMTE=1, Svpbmt is available for VS-stage address translation.
132-
132+
133133
When PBMTE=0, the implementation behaves as though `Svpbmt` were not implemented for
134134
VS-stage address translation.
135-
135+
136136
If `Svpbmt` is not implemented, PBMTE is read-only zero.
137137
138138
`henvcfg.PBMTE` is read-as-zero if `menvcfg.PBMTE` is zero.
@@ -141,7 +141,7 @@ fields:
141141
_rs1_=_x0_ and _rs2_=_x0_ suffices to synchronize with respect to the altered interpretation
142142
of G-stage and VS-stage PTEs' PBMT fields.
143143
144-
By contrast, if the PBMTE bit in `henvcfg` is changed, executing an `hfence.vvma` with
144+
By contrast, if the PBMTE bit in `henvcfg` is changed, executing an `hfence.vvma` with
145145
_rs1_=_x0_ and _rs2_=_x0_ suffices to synchronize with respect to the altered interpretation
146146
of VS-stage PTEs' PBMT fields for the currently active VMID.
147147
@@ -165,14 +165,14 @@ fields:
165165
description: |
166166
If the `Svadu` extension is implemented, the ADUE bit controls whether hardware updating of
167167
PTE A/D bits is enabled for VS-stage address translation.
168-
168+
169169
When ADUE=1, hardware updating of PTE A/D bits is enabled during VS-stage address
170170
translation, and the implementation behaves as though the Svade extension were not
171171
implemented for VS-mode address translation.
172-
172+
173173
When ADUE=0, the implementation behaves as though Svade were implemented for VS-stage
174174
address translation.
175-
175+
176176
If Svadu is not implemented, ADUE is read-only zero.
177177
178178
Furthermore, for implementations with the hypervisor extension, henvcfg.ADUE is read-only
@@ -287,4 +287,4 @@ sw_read(): |
287287
# henvcfg.ADUE must read-as-zero
288288
value = value & ~(1 << 61);
289289
}
290-
return value;
290+
return value;

0 commit comments

Comments
 (0)