Implement backtrace for RISC-V