-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[riscv-config] Update riscv-config tool, CV32A65X specs and the rende…
…ring of CSRs. (#2270)
- Loading branch information
Showing
9 changed files
with
429 additions
and
222 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
vendor/patches/riscv/riscv-config/0004-fix-mstatush-and-nonascii-chars.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml b/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml | ||
index a7536375f..27e88d16f 100644 | ||
--- a/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml | ||
+++ b/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml | ||
@@ -523,9 +523,9 @@ hart_schema: | ||
schema: | ||
description: | ||
type: string | ||
- default: The mstatus register keeps track of and controls the hart’s current | ||
+ default: The mstatus register keeps track of and controls the hart's current | ||
operating state. | ||
- address: {type: integer, default: 768, allowed: [768]} | ||
+ address: {type: integer, default: 0x300, allowed: [0x300]} | ||
priv_mode: {type: string, default: M, allowed: [M]} | ||
reset-val: | ||
type: integer | ||
@@ -1506,7 +1506,7 @@ hart_schema: | ||
type: string | ||
default: The mstatush register keeps track of and controls the hart’s current | ||
operating state. | ||
- address: {type: integer, default: 768, allowed: [768]} | ||
+ address: {type: integer, default: 0x310, allowed: [0x310]} | ||
priv_mode: {type: string, default: M, allowed: [M]} | ||
reset-val: | ||
type: integer |
60 changes: 60 additions & 0 deletions
60
vendor/patches/riscv/riscv-config/0005-add-csr-schema-for-mconfigptr.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
diff --git a/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml b/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml | ||
index 27e88d16f..9c67bbcb7 100644 | ||
--- a/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml | ||
+++ b/vendor/riscv/riscv-config/riscv_config/schemas/schema_isa.yaml | ||
@@ -1819,6 +1819,55 @@ hart_schema: | ||
default: true | ||
check_with: rv64_check | ||
default: {accessible: false} | ||
+ mconfigptr: | ||
+ type: dict | ||
+ schema: | ||
+ description: | ||
+ type: string | ||
+ default: MXLEN-bit read-only register that holds the physical address | ||
+ of a configuration data structure. | ||
+ address: {type: integer, default: 0xF15, allowed: [0xF15]} | ||
+ priv_mode: {type: string, default: M, allowed: [M]} | ||
+ reset-val: | ||
+ type: integer | ||
+ default: 0 | ||
+ check_with: max_length | ||
+ rv32: | ||
+ type: dict | ||
+ schema: | ||
+ fields: {type: list, default: []} | ||
+ shadow: {type: string, default: , nullable: True} | ||
+ shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']} | ||
+ msb: {type: integer, default: 31, allowed: [31]} | ||
+ lsb: {type: integer, default: 0, allowed: [0]} | ||
+ type: | ||
+ type: dict | ||
+ schema: {ro_constant: {type: integer, max: 0xFFFFFFFF}} | ||
+ default: | ||
+ ro_constant: 0 | ||
+ accessible: | ||
+ type: boolean | ||
+ default: true | ||
+ check_with: rv32_check | ||
+ default: {accessible: false} | ||
+ rv64: | ||
+ type: dict | ||
+ schema: | ||
+ fields: {type: list, default: []} | ||
+ shadow: {type: string, default: , nullable: True} | ||
+ shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']} | ||
+ msb: {type: integer, default: 63, allowed: [63]} | ||
+ lsb: {type: integer, default: 0, allowed: [0]} | ||
+ type: | ||
+ type: dict | ||
+ schema: {ro_constant: {type: integer, max: 0xFFFFFFFFFFFFFFFF}} | ||
+ default: | ||
+ ro_constant: 0 | ||
+ accessible: | ||
+ type: boolean | ||
+ default: true | ||
+ check_with: rv64_check | ||
+ default: {accessible: false} | ||
mtvec: | ||
type: dict | ||
schema: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters