Skip to content

Commit 808047f

Browse files
committed
fix for vsstatus default setter and adding endian fields in mstatush
1 parent 955f1a0 commit 808047f

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

CHANGELOG.md

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

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

5+
## [2.12.1] - 2021-12-18
6+
### Fixed
7+
8+
- added mbe and sbe fields in mstatush
9+
- fixed default setter for vsstatus in RV32 mode
10+
511
## [2.12.0] - 2021-12-10
612

713
### Added

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.12.0'
3+
__version__ = '2.12.1'

riscv_config/checker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def reset_vsstatus():
5353
global inp_yaml
5454
if 64 in inp_yaml['supported_xlen'] and 'U' in inp_yaml['ISA']:
5555
return 8589934592
56-
elif 32 in inp_yaml['supported_xlen'] and 'U' in inp_yaml['ISA']:
57-
return 42949672960
5856
else:
5957
return 0
6058

riscv_config/schemas/schema_isa.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,42 @@ hart_schema:
14461446
default: {ro_constant: 0}
14471447
default: {implemented: false}
14481448
check_with: h_check
1449+
mbe:
1450+
type: dict
1451+
schema:
1452+
description: { type: string, default: control the endianness of memory accesses other than instruction fetches for machine mode}
1453+
shadow: {type: string, default: , nullable: True}
1454+
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
1455+
msb: {type: integer, default: 5, allowed: [5]}
1456+
lsb: {type: integer, default: 5, allowed: [5]}
1457+
implemented: {type: boolean, default: true}
1458+
type:
1459+
type: dict
1460+
check_with: wr_illegal
1461+
oneof:
1462+
- schema: { warl: *ref_warl }
1463+
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
1464+
- schema: { wlrl: *ref_wlrl }
1465+
default: {ro_constant: 0}
1466+
default: {implemented: false}
1467+
sbe:
1468+
type: dict
1469+
schema:
1470+
description: { type: string, default: control the endianness of memory accesses other than instruction fetches for supervisor mode}
1471+
shadow: {type: string, default: , nullable: True}
1472+
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
1473+
msb: {type: integer, default: 4, allowed: [4]}
1474+
lsb: {type: integer, default: 4, allowed: [4]}
1475+
implemented: {type: boolean, default: true}
1476+
type:
1477+
type: dict
1478+
check_with: wr_illegal
1479+
oneof:
1480+
- schema: { warl: *ref_warl }
1481+
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
1482+
- schema: { wlrl: *ref_wlrl }
1483+
default: {ro_constant: 0}
1484+
default: {implemented: false}
14491485
accessible:
14501486
type: boolean
14511487
default: false

0 commit comments

Comments
 (0)