Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Code Size Reduction Extension #129

Merged
merged 4 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.13.1] - 2023-08-21
- Add support for Code Size Reduction (Zce) extension

## [3.13.0] - 2023-08-14
- Fixed issue #110
- Fixed issue #108
Expand Down
2 changes: 1 addition & 1 deletion riscv_config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
__version__ = '3.13.0'
__version__ = '3.13.1'
1 change: 1 addition & 0 deletions riscv_config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"Zicbom", "Zicbop", "Zicboz", "Zicntr", "Zicsr", "Zicond", "Zifencei", "Zihintpause", "Zihpm",
"Zmmul",
"Zam", "Zacas",
"Zca", "Zcb", "Zcf", "Zcd" , "Zcmp", "Zcmt",
"Zfh", "Zfa",
"Zfinx", "Zdinx", "Zhinx", "Zhinxmin",
"Ztso",
Expand Down
97 changes: 97 additions & 0 deletions riscv_config/schemas/schema_isa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13537,3 +13537,100 @@ CSR and the value returned in VS-mode or VU-mode.}
- rv64_check
- smrnmi_check
default: {accessible: false}
jvt:
type: dict
schema:
description: { type: string, default: Table jump base vector and control register }
address: {type: integer, default: 0x0017, allowed: [0x0017]}
priv_mode: {type: string, default: M, allowed: [M]}
reset-val: { type: integer, check_with: max_length , default: 0}
rv32:
type: dict
schema:
fields: {type: list, default: []}
mode:
type: dict
schema:
description: {type: string, default: Jump Table mode}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 5, allowed: [5]}
lsb: {type: integer, default: 0, allowed: [0]}
implemented: {type: boolean, default: true, allowed: [true]}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 64}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
ro_constant: 0
default: {implemented: True}
base:
type: dict
schema:
description: {type: string, default: Jump Table base address}
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: 6, allowed: [6]}
implemented: {type: boolean, default: true, allowed: [true]}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 67108864}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- "base[31:6] bitmask [0x3FFFFFF, 0x0000000]"
wr_illegal:
- "Unchanged"
default: {implemented: true}
rv64:
type: dict
schema:
fields: {type: list, default: []}
mode:
type: dict
schema:
description: {type: string, default: Jump Table mode}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 5, allowed: [5]}
lsb: {type: integer, default: 0, allowed: [0]}
implemented: {type: boolean, default: true, allowed: [true]}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 64}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
ro_constant: 0
default: {implemented: True}
base:
type: dict
schema:
description: {type: string, default: Jump Table base address}
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: 6, allowed: [6]}
implemented: {type: boolean, default: true, allowed: [true]}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 288230376151711744}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- "base[63:6] bitmask [0x3FFFFFFFFFFFFFF, 0x000000000000000]"
wr_illegal:
- "Unchanged"
default: {implemented: true}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.13.0
current_version = 3.13.1
commit = True
tag = True

Expand Down
Loading