summaryrefslogtreecommitdiffstats
path: root/hw/intc/omap_intc.c
diff options
context:
space:
mode:
authorJim Shu2022-10-03 06:14:40 +0200
committerAlistair Francis2022-10-14 06:29:50 +0200
commit1aae4a12dab4bf1adc249c2ac6178d15e4b5a77d (patch)
treeddd3df4d49986b9b3dd2c5d294a92f8ac42e2a25 /hw/intc/omap_intc.c
parenthw/intc: sifive_plic: fix hard-coded max priority level (diff)
downloadqemu-1aae4a12dab4bf1adc249c2ac6178d15e4b5a77d.tar.gz
qemu-1aae4a12dab4bf1adc249c2ac6178d15e4b5a77d.tar.xz
qemu-1aae4a12dab4bf1adc249c2ac6178d15e4b5a77d.zip
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>
Diffstat (limited to 'hw/intc/omap_intc.c')
0 files changed, 0 insertions, 0 deletions