Skip to content

Commit e9cc028

Browse files
authored
Bug fix #22 (#23)
Fixed: - Removed legal_checks function. - Closes #22
1 parent a351a83 commit e9cc028

File tree

4 files changed

+5
-23
lines changed

4 files changed

+5
-23
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## 2.0.2 - 2020-03-28
6+
### Fixed
7+
- Redundant reset-val check for mtvec and misa registers.
8+
59
## 2.0.1 - 2020-03-25
610
### Fixed
711
- typos in quickstart doc

riscv_config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from pkgutil import extend_path
22
__path__ = extend_path(__path__, __name__)
3-
__version__ = "2.0.1"
3+
__version__ = "2.0.2"

riscv_config/schemaValidator.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -258,22 +258,3 @@ def _check_with_sedeleg_reset(self, field, value):
258258
s = format(value, '#{}b'.format(xlen[0] + 2))
259259
if (s[-11:-8]) != '000' and value >= int("400", 16):
260260
self._error(field, " 11,10,9 bits should be hardwired to 0")
261-
262-
def _check_with_legal_check(self, field, value):
263-
global xlen
264-
l = []
265-
warl = []
266-
if xlen[0] == 32:
267-
xl = 32
268-
elif xlen[0] == 64:
269-
xl = 64
270-
elif xlen[0] == 128:
271-
xl = 128
272-
for i in value['rv{}'.format(xl)].keys():
273-
l.append(i)
274-
if "warl" in value['rv{}'.format(xl)][l[1]]['type']:
275-
warl = (warl_interpreter(
276-
value['rv{}'.format(xl)][l[1]]['type']['warl']))
277-
warl.dependencies()
278-
if (warl.islegal(hex(value['reset-val'])[2:], [1]) != True):
279-
self._error(field, "Illegal reset value")

riscv_config/schemas/schema_isa.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ schema_node:
179179
type: string
180180
misa:
181181
type: dict
182-
check_with: legal_check
183182
schema:
184183
description:
185184
type: string
@@ -2272,8 +2271,6 @@ mhartid:
22722271
implemented: false
22732272
mtvec:
22742273
type: dict
2275-
check_with:
2276-
- legal_check
22772274
schema:
22782275
description:
22792276
type: string

0 commit comments

Comments
 (0)