Comment 2 for bug 2077731

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

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.