Skip to content

Commit 56dad16

Browse files
authored
fixed bit range specification for max-scratchpad-buffers-hi (#134)
1 parent 34f48f1 commit 56dad16

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## Unreleased - ReleaseDate
4+
### Fixed
5+
- Wrong bit range in `StructuralParameters2::max_scratchpad_buffers` is fixed .
46

57
## 0.8.3 - 2022-04-20
68
### Added

src/registers/capability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl StructuralParameters2 {
154154
}
155155

156156
fn max_scratchpad_buffers_hi(self) -> u32 {
157-
self.0.get_bits(20..=25)
157+
self.0.get_bits(21..=25)
158158
}
159159

160160
fn max_scratchpad_buffers_lo(self) -> u32 {

0 commit comments

Comments
 (0)