Browse Source

Invalid instruction exit. Todo: shutdown process

luojia65 4 năm trước cách đây
mục cha
commit
e8378daf80
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      soc/qemu/src/main.rs

+ 1 - 1
soc/qemu/src/main.rs

@@ -325,7 +325,7 @@ extern "C" fn start_trap_rust(trap_frame: &mut TrapFrame) {
                 }
                 mepc::write(mepc::read().wrapping_add(4)); // 跳过指令
             } else {
-                panic!("invalid instruction, mepc: {:016x?}", mepc::read());
+                panic!("invalid instruction, mepc: {:016x?}, instruction: {:016x?}", mepc::read(), ins);
             }
         }
         cause => panic!(