[RFC PATCH v5 3/7] target/riscv: add sdext Debug Mode helpers