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: 1e24429e40df ("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
..
2021-05-02 17:24:51 +02:00
2021-05-02 17:24:51 +02:00
2022-12-15 11:18:20 +00:00
2022-12-15 11:18:20 +00:00
2022-11-21 11:45:13 +00:00
2020-11-15 16:42:14 +01:00
2022-12-15 11:18:20 +00:00
2021-12-15 10:11:34 +00:00
2022-11-14 15:10:58 +00:00
2022-12-15 11:18:19 +00:00
2022-12-15 11:18:20 +00:00
2022-12-15 11:18:20 +00:00
2022-12-15 11:18:20 +00:00
2022-12-15 11:18:20 +00:00
2022-08-01 11:58:02 +02:00
2022-03-07 13:16:50 +00:00
2022-07-18 13:20:09 +01:00
2022-02-21 13:30:20 +00:00
2022-02-21 13:30:20 +00:00
2021-03-19 15:18:43 +01:00
2022-04-21 11:37:04 +01:00
2022-04-21 09:27:54 -07:00
2022-04-22 14:44:53 +01:00
2021-11-09 10:11:27 +01:00
2021-05-02 17:24:51 +02:00
2022-10-31 18:48:23 +00:00
2022-01-27 12:08:50 +01:00
2021-03-19 08:48:18 -04:00
2021-05-02 17:24:50 +02:00
2022-01-27 12:08:50 +01:00
2021-01-08 15:13:38 +00:00
2023-01-06 10:42:55 +10:00
2022-11-04 17:07:40 +08:00
2022-10-17 10:28:35 +08:00
2022-07-04 11:08:58 +05:30
2022-07-19 21:53:58 +05:30
2021-02-21 18:41:46 +01:00
2021-11-09 10:11:27 +01:00
2022-06-06 18:12:30 +00:00
2022-04-26 08:17:05 -07:00
2021-05-02 17:24:50 +02:00
2021-09-30 15:30:24 +02:00
2022-10-31 18:48:23 +00:00
2022-03-02 06:51:39 +01:00
2022-07-06 10:22:38 -03:00
2022-07-06 10:22:38 -03:00
2022-08-31 14:08:06 -03:00
2022-09-07 09:19:10 +02:00
2022-06-08 19:38:47 +01:00
2022-09-07 09:18:33 +02:00
2020-11-23 10:41:58 +00:00
2022-04-06 10:50:38 +02:00
2021-05-02 17:24:51 +02:00
2021-10-30 18:39:37 +02:00
2023-01-06 10:42:55 +10:00
2021-10-21 11:42:47 +11:00
2022-03-02 06:51:39 +01:00
2022-11-04 17:07:37 +08:00
2022-04-06 14:31:55 +02:00
2021-05-02 17:24:51 +02:00
2022-12-16 15:59:07 +00:00
2022-05-05 15:36:17 -03:00
2022-07-18 13:59:43 -03:00