target/riscv: Expose interrupt pending bits as GPIO lines