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 28f9511 commit 861bbbfCopy full SHA for 861bbbf
src/instructions/tlb.rs
@@ -259,7 +259,7 @@ where
259
/// The caller has to ensure that SVM is enabled in EFER when the flush is executed.
260
// FIXME: Make ASID a type and remove error type.
261
pub unsafe fn asid(&mut self, asid: u16) -> Result<&mut Self, AsidOutOfRangeError> {
262
- if u32::from(asid) > self.invlpgb.nasid {
+ if u32::from(asid) >= self.invlpgb.nasid {
263
return Err(AsidOutOfRangeError {
264
asid,
265
nasid: self.invlpgb.nasid,
0 commit comments