This patch can boot `rv-virt/knsh64` and `rv-virt/knsh32` reported in issue #12275 with qemu 6.2 target and OpenSBI v1.0 firmware on Ubuntu 22.04 host. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>