hw/intc: sifive_plic: Fix the pending register range check