Files
qemu/hw
Bin Meng bc92f26151 hw/intc: sifive_plic: Fix the pending register range check
The pending register upper limit is currently set to
plic->num_sources >> 3, which is wrong, e.g.: considering
plic->num_sources is 7, the upper limit becomes 0 which fails
the range check if reading the pending register at pending_base.

Fixes: 1e24429e40 ("SiFive RISC-V PLIC Block")
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221211030829.802437-16-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-01-06 10:42:55 +10:00
..
2022-12-21 07:32:24 -05:00
2022-12-21 06:35:28 -05:00
2022-12-21 06:35:28 -05:00
2022-10-31 11:32:07 +01:00
2022-12-21 06:35:28 -05:00
2022-09-04 07:02:56 +01:00
2022-10-27 11:34:31 +01:00
2022-12-21 06:35:28 -05:00
2022-10-24 11:20:15 +02:00