Skip to content

Commit

Permalink
Merge pull request #180 from iamkarthikbk/master
Browse files Browse the repository at this point in the history
exclude svnapot and fix errors logged from ruamel.
  • Loading branch information
neelgala authored May 28, 2024
2 parents cf37473 + 01fd498 commit f7e2ca6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [3.18.3] - 2024-05-28
- exclude Svnapot from march generation. fixes #178.
- log raw error messages from ruamel while loading yamls. fixes #179.

## [3.18.2] - 2024-04-16
- added yaml dump_flag which provides for the functions that dump yaml.

Expand Down
2 changes: 1 addition & 1 deletion riscv_config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
__version__ = '3.18.2'
__version__ = '3.18.3'

3 changes: 3 additions & 0 deletions riscv_config/isa_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def get_march_mabi (isa : str, opt_remove_custom_exts: bool = False):
'Zbf',
'Zbm',
'Zbr',

# supervisor address translations
'Svnapot',
]

# add Zbp and Zbt to null_ext if Zbpbo is present
Expand Down
3 changes: 1 addition & 2 deletions riscv_config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def load_yaml(foo, no_anchors=False):
return yaml.load(file)
except ruamel.yaml.constructor.DuplicateKeyError as msg:
logger = logging.getLogger(__name__)
error = "\n".join(str(msg).split("\n")[2:-7])
logger.error(error)
logger.error(msg)
raise SystemExit


Expand Down
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.18.2
current_version = 3.18.3
commit = True
tag = True

Expand Down

0 comments on commit f7e2ca6

Please sign in to comment.