[PATCH 5.4 081/151] riscv: Set text_offset correctly for M-Mode