riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
581 stars 307 forks source link

Illegal Instruction on linux on top BBL #193

Closed johnnavaj closed 3 years ago

johnnavaj commented 4 years ago

I have built the mainline linux and passed it as a payload to BBL . Using minimal initramfs as filesystem.

I am getting a illegal instruction once i drop into the userspace , what could be the cause of this trap ?

Log as below

image

sahajgarg commented 4 years ago

The badaddr field (mtval) contains the faulting instruction, which appears to be a read to the CSR 0x105, which corresponds to stvec. This is supervisor read/write privilege, so that might be causing the illegal instruction.