Jim Shu
1aae4a12da
hw/intc: sifive_plic: change interrupt priority register to WARL field
...
PLIC spec [1] requires interrupt source priority registers are WARL
field and the number of supported priority is power-of-2 to simplify SW
discovery.
Existing QEMU RISC-V machine (e.g. shakti_c) don't strictly follow PLIC
spec, whose number of supported priority is not power-of-2. Just change
each bit of interrupt priority register to WARL field when the number of
supported priority is power-of-2.
[1] https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc#interrupt-priorities
Signed-off-by: Jim Shu <jim.shu@sifive.com>
Reviewed-by: Clément Chigot <chigot@adacore.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221003041440.2320-3-jim.shu@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2022-10-14 14:29:50 +10:00
..
2019-08-16 13:31:53 +02:00
2021-05-02 17:24:51 +02:00
2021-05-02 17:24:51 +02:00
2020-02-28 16:14:57 +00:00
2021-05-02 17:24:51 +02:00
2022-01-20 11:47:52 +00:00
2020-11-15 16:42:14 +01:00
2022-05-19 16:19:02 +01:00
2021-12-15 10:11:34 +00:00
2022-06-08 19:38:47 +01:00
2022-06-08 19:38:47 +01:00
2021-11-22 18:17:19 +00:00
2022-04-22 09:24:44 +01:00
2022-04-22 14:44:53 +01:00
2022-05-19 16:19:02 +01: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
2019-08-16 13:31:52 +02: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
2018-09-25 15:13:24 +01: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
2019-08-16 13:31:52 +02:00
2022-01-27 12:08:50 +01:00
2021-03-19 08:48:18 -04:00
2019-08-16 13:31:52 +02:00
2021-05-02 17:24:50 +02:00
2016-10-04 10:00:25 +02:00
2022-01-27 12:08:50 +01:00
2021-01-08 15:13:38 +00:00
2022-06-06 18:12:30 +00:00
2022-06-06 18:12:30 +00:00
2022-07-05 16:25:17 +05:30
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
2020-01-24 20:59:15 +01:00
2022-04-26 08:17:05 -07:00
2020-09-09 13:20:22 -04:00
2021-05-02 17:24:50 +02:00
2021-09-30 15:30:24 +02:00
2022-06-28 11:06:02 +02:00
2020-09-18 14:12:32 -04:00
2022-03-02 06:51:39 +01:00
2022-07-06 10:22:38 -03:00
2019-03-12 14:33:04 +11:00
2022-07-06 10:22:38 -03:00
2022-08-31 14:08:06 -03:00
2020-07-10 15:18:08 +02: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
2022-10-14 14:29:50 +10:00
2020-09-18 14:12:32 -04:00
2021-10-21 11:42:47 +11:00
2022-03-02 06:51:39 +01:00
2022-06-06 18:12:30 +00:00
2020-08-21 06:18:24 -04:00
2015-09-24 01:29:36 +01:00
2022-04-06 14:31:55 +02:00
2020-11-15 16:38:24 +01:00
2021-05-02 17:24:51 +02:00
2022-09-22 16:38:28 +01:00
2020-09-09 09:27:09 -04:00
2022-05-05 15:36:17 -03:00
2022-07-18 13:59:43 -03:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00