From 2b5c545541da938e2e791572f2b120d7c7f63566 Mon Sep 17 00:00:00 2001 From: Karthik B K Date: Tue, 9 Jan 2024 14:39:32 +0530 Subject: [PATCH 1/3] support march generation without custom extensions --- riscv_config/isa_validator.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/riscv_config/isa_validator.py b/riscv_config/isa_validator.py index 1e8d674..26f097a 100644 --- a/riscv_config/isa_validator.py +++ b/riscv_config/isa_validator.py @@ -161,7 +161,7 @@ def get_extension_list(isa): return (extension_list, err, err_list) -def get_march_mabi (isa : str): +def get_march_mabi (isa : str, opt_remove_custom_exts: bool = False): ''' This function returns the corresponding march and mabi argument values for RISC-V GCC @@ -215,6 +215,13 @@ def get_march_mabi (isa : str): # add Zbp and Zbt to null_ext if Zbpbo is present if 'Zbpbo' in ext_list: null_ext += ['Zbp', 'Zbt'] + + # remove all custom extensions + for ext in ext_list: + if ext.startswith('X'): + if opt_remove_custom_exts: + ext_list.remove(ext) + # construct march for ext in ext_list: if ext not in null_ext: From e0198b658f87b521d479c7ea689820782cb382b3 Mon Sep 17 00:00:00 2001 From: Karthik B K Date: Tue, 9 Jan 2024 14:39:41 +0530 Subject: [PATCH 2/3] update changelog. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76569e0..2966ba1 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.17.0] - 2024-01-09 + - support march generation without custom extensions + ## [3.16.0] - 2024-01-03 - use the "hartX" naming for the merged dict - improve logging statements From 2087fcd5d9801bd518fb45b1f40578c6d5f0b4aa Mon Sep 17 00:00:00 2001 From: Karthik B K Date: Tue, 9 Jan 2024 14:40:11 +0530 Subject: [PATCH 3/3] =?UTF-8?q?Bump=20version:=203.16.0=20=E2=86=92=203.17?= =?UTF-8?q?.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 dfbbd6a..9eb8981 100644 --- a/riscv_config/__init__.py +++ b/riscv_config/__init__.py @@ -1,4 +1,4 @@ from pkgutil import extend_path __path__ = extend_path(__path__, __name__) -__version__ = '3.16.0' +__version__ = '3.17.0' diff --git a/setup.cfg b/setup.cfg index 24483d1..d521827 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.16.0 +current_version = 3.17.0 commit = True tag = True