riscv: plic: Honour source priorities
commitaa4d30f6618dcaf033c4294ca219ef17a6bae69f
authorJessica Clarke <jrtc27@jrtc27.com>
Thu, 18 Jun 2020 20:23:43 +0000 (18 21:23 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 2 Jul 2020 16:19:32 +0000 (2 09:19 -0700)
tree438874c1baf199b341fdd5c6905daf23d0758a48
parent64f0ad8ad8e13257e7c912df470d46784b55c3fd
riscv: plic: Honour source priorities

The source priorities can be used to order sources with respect to other
sources, not just as a way to enable/disable them based off a threshold.
We must therefore always claim the highest-priority source, rather than
the first source we find.

Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20200618202343.20455-1-jrtc27@jrtc27.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/sifive_plic.c