The crash output is generated in EDK II,
UefiCpuPkg/Library/BaseRiscV64CpuExceptionHandlerLib/CpuExceptionHandlerLib.c

Here we could add code showing the failing instruction. Only showing the
registers is not helpful.

U-Boot creates output like:

Unhandled exception: Illegal instruction
EPC: 0000000087732eb0 RA: 000000008773c092 TVAL: 00000000ffffffff
EPC: 0000000080214eb0 RA: 000000008021e092 reloc adjusted

Code: f517 0006 0513 7305 b721 9002 4505 8082 (ffff ffff)

The last line can be disassembled with objcopy. See Linux'
scripts/decodecode.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2077731

Title:
  riscv64 EDK 2 crashes in KVM based emulation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/2077731/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to