target/riscv: fix use of uninitialized value