Skip to content

Commit

Permalink
feat: add loongarch fetchpagefault
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed May 19, 2024
1 parent 271f336 commit 3ad67de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loongarch64/trap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ fn loongarch64_trap_handler(tf: &mut TrapFrame) -> TrapType {
// TrapType::Un
TrapType::StorePageFault(badv::read().vaddr())
}
Trap::Exception(Exception::LoadPageFault) => TrapType::LoadPageFault(badv::read().vaddr()),
Trap::Exception(Exception::FetchPageFault)
| Trap::Exception(Exception::LoadPageFault) => TrapType::LoadPageFault(badv::read().vaddr()),
_ => {
panic!(
"Unhandled trap {:?} @ {:#x} BADV: {:#x}:\n{:#x?}",
Expand Down

0 comments on commit 3ad67de

Please sign in to comment.