riscv: code patching only works on !XIP_KERNEL