From bfc3492b5ed3924acbf6e777c7b88eaa55c61815 Mon Sep 17 00:00:00 2001 From: Abdul Wadood Date: Tue, 20 Jun 2023 13:43:56 +0500 Subject: [PATCH 1/4] Update Z_extensions list with ISA strings for zce extension Signed-off-by: Abdul Wadood --- riscv_config/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv_config/constants.py b/riscv_config/constants.py index b9222c6..147559f 100644 --- a/riscv_config/constants.py +++ b/riscv_config/constants.py @@ -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", From 77487c48b97486ef1026c258db4932a25dd14791 Mon Sep 17 00:00:00 2001 From: Abdul Wadood Date: Sun, 20 Aug 2023 22:15:24 +0500 Subject: [PATCH 2/4] Add JVT CSR in schema_isa.yaml Signed-off-by: Abdul Wadood --- riscv_config/schemas/schema_isa.yaml | 97 ++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/riscv_config/schemas/schema_isa.yaml b/riscv_config/schemas/schema_isa.yaml index d29ac90..4336dd3 100644 --- a/riscv_config/schemas/schema_isa.yaml +++ b/riscv_config/schemas/schema_isa.yaml @@ -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} \ No newline at end of file From 43f7d1df9b46ae94741b278bb95993a9a5bfd019 Mon Sep 17 00:00:00 2001 From: Abdul Wadood Date: Sun, 20 Aug 2023 22:17:53 +0500 Subject: [PATCH 3/4] Bump version: 3.13.0 -> 3.13.1 Signed-off-by: Abdul Wadood --- riscv_config/__init__.py | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/riscv_config/__init__.py b/riscv_config/__init__.py index 7f83ff2..158bf7d 100644 --- a/riscv_config/__init__.py +++ b/riscv_config/__init__.py @@ -1,3 +1,3 @@ from pkgutil import extend_path __path__ = extend_path(__path__, __name__) -__version__ = '3.13.0' \ No newline at end of file +__version__ = '3.13.1' \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 421e1ac..4a2ea57 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.13.0 +current_version = 3.13.1 commit = True tag = True From 719c228288084766d7dc441f0784ee4791cb58c1 Mon Sep 17 00:00:00 2001 From: Abdul Wadood Date: Sun, 20 Aug 2023 22:19:21 +0500 Subject: [PATCH 4/4] Update Changelog Signed-off-by: Abdul Wadood --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd441ec..85a18e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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