From 9780fe3ea4304dd344633cd9e06152c7bebff869 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 15 Feb 2026 03:32:30 +0800 Subject: [PATCH] same fix as previous commit but for boot1 --- bao1x-boot/boot1/src/platform/bao1x/irq.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bao1x-boot/boot1/src/platform/bao1x/irq.rs b/bao1x-boot/boot1/src/platform/bao1x/irq.rs index 38092a06f..64d658bb7 100644 --- a/bao1x-boot/boot1/src/platform/bao1x/irq.rs +++ b/bao1x-boot/boot1/src/platform/bao1x/irq.rs @@ -185,16 +185,6 @@ pub extern "C" fn trap_handler( // crate::println!("cause {:x}", cause.bits()); // 2 is illegal instruction if cause.bits() == 2 { - // skip past the illegal instruction, in case that's what we want to do... - unsafe { - #[rustfmt::skip] - core::arch::asm!( - "csrr t0, mepc", - "addi t0, t0, 4", - "csrw mepc, t0", - ); - } - // ...but also panic. panic!("Illegal Instruction"); } else if cause.bits() == 4 { let epc = riscv::register::mepc::read();