fixing vm bug

This commit is contained in:
mlokr 2024-09-09 22:52:34 +02:00
parent 6cb9489e9a
commit 32bed04914
No known key found for this signature in database
GPG key ID: DEA147DDEE644993
2 changed files with 5 additions and 5 deletions

View file

@ -888,7 +888,7 @@ create_back_buffer := fn(total_pages: int): ^u32 {
}
main := fn(): void {
create_back_buffer(10)
create_back_buffer(400)
return
}
```

View file

@ -270,10 +270,10 @@ where
self.bump_pc::<OpsRRP>();
}
}
JLTS => self.cond_jmp::<u64>(Ordering::Less),
JGTS => self.cond_jmp::<u64>(Ordering::Greater),
JLTU => self.cond_jmp::<i64>(Ordering::Less),
JGTU => self.cond_jmp::<i64>(Ordering::Greater),
JLTS => self.cond_jmp::<i64>(Ordering::Less),
JGTS => self.cond_jmp::<i64>(Ordering::Greater),
JLTU => self.cond_jmp::<u64>(Ordering::Less),
JGTU => self.cond_jmp::<u64>(Ordering::Greater),
ECA => {
// So we don't get timer interrupt after ECALL
if TIMER_QUOTIENT != 0 {