Skip to content

Commit cf88b2b

Browse files
fix: correct renamed parameters (#699)
Noticed in AC100-CRD.
1 parent 14212a3 commit cf88b2b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

arch/profile/RVB23M64.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extensions:
6363
REPORT_ENCODING_IN_MTVAL_ON_ILLEGAL_INSTRUCTION:
6464
schema:
6565
const: true
66-
M_MODE_ENDIANESS:
66+
M_MODE_ENDIANNESS:
6767
schema:
6868
const: little
6969
# TODO: Uncomment when GitHub issue # is fixed.
@@ -76,7 +76,7 @@ extensions:
7676
# version: "=1.1.0"
7777
# then:
7878
# enum: [little, big]
79-
XLEN:
79+
MXLEN:
8080
schema:
8181
const: 64
8282
CONFIG_PTR_ADDRESS:

doc/prose_schema.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ description:
4444
normative: false
4545
text: |
4646
Since the CPU does not support big endian in VS-mode, this is hardwired to 0.
47-
when(): return VS_MODE_ENDIANESS == "little";
47+
when(): return VS_MODE_ENDIANNESS == "little";
4848

4949
- id: csr-hstatus-vgein-big-endian
5050
normative: false
5151
text: |
5252
Since the CPU does not support little endian in VS-mode, this is hardwired to 1.
53-
when(): return VS_MODE_ENDIANESS == "big";
53+
when(): return VS_MODE_ENDIANNESS == "big";
5454
```
5555

5656
== ID conventions

lib/arch_obj_models/certificate.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ class RequirementGroup
9898
# @param data [Hash<String, Object>] Data from yaml
9999
# @param arch [Architecture] Architecture standards
100100
def initialize(data, arch)
101-
raise ArgumentError, "Bad data" unless data.is_a?(Hash) unless data.is_a?(Hash)
102-
raise ArgumentError, "Need Architecture class but it's a #{arch.class}" unless arch.is_a?(Architecture)
101+
raise ArgumentError, "data is a #{data.class} class containing '#{data}' but needs to be a Hash" unless data.is_a?(Hash)
102+
raise ArgumentError, "arch is a #{arch.class} class but needs to be an Architecture class" unless arch.is_a?(Architecture)
103103

104104
@data = data
105105
@arch = arch

0 commit comments

Comments
 (0)