We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5d50a0 commit 3c67b4cCopy full SHA for 3c67b4c
src/cmse.rs
@@ -174,9 +174,9 @@ impl TestTarget {
174
/// * the TT instruction was executed from an unprivileged mode and the A flag was not specified.
175
#[inline]
176
pub fn mpu_region(self) -> Option<u8> {
177
- if self.tt_resp.srvalid() {
178
- // Cast is safe as SREGION field is defined on 8 bits.
179
- Some(self.tt_resp.sregion() as u8)
+ if self.tt_resp.mrvalid() {
+ // Cast is safe as MREGION field is defined on 8 bits.
+ Some(self.tt_resp.mregion() as u8)
180
} else {
181
None
182
}
0 commit comments