Skip to content

Commit

Permalink
[dependencies] update xv6 image and update exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed May 15, 2024
1 parent 62b5439 commit 7779ca8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file modified dependencies/xv6/fs.img
Binary file not shown.
Binary file modified dependencies/xv6/kernel
Binary file not shown.
Binary file modified dependencies/xv6/kernel.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions src/emulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ impl Emulator {
/// Start executing the emulator without difftest.
pub fn start(&mut self) {
loop {
let pc = self.cpu.pc;
// let pc = self.cpu.pc;
let trap = self.execute();
info!("pc: {:#x}, inst: {}", pc, self.cpu.inst);
// info!("pc: {:#x}, inst: {}", pc, self.cpu.inst);

match trap {
Trap::Fatal => {
Expand Down
4 changes: 2 additions & 2 deletions src/exception.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ impl Exception {
| Exception::StoreAMOAccessFault => Trap::Fatal,
Exception::EnvironmentCallFromUMode
| Exception::EnvironmentCallFromSMode
// | Exception::EnvironmentCallFromMMode => Trap::Requested,
| Exception::EnvironmentCallFromMMode => Trap::Fatal,
| Exception::EnvironmentCallFromMMode => Trap::Requested,
// | Exception::EnvironmentCallFromMMode => Trap::Fatal,
Exception::InstructionPageFault(_) | Exception::LoadPageFault(_) | Exception::StoreAMOPageFault(_) => {
Trap::Invisible
}
Expand Down

0 comments on commit 7779ca8

Please sign in to comment.