[PATCH v3 05/22] riscv: Add a reset_cpu() function