riscv-isa-sim
riscv-isa-sim copied to clipboard
PLIC: Implement threshold masking
Settings a priority threshold in the PLIC device does currently not mask any interrupts. (The member priority_threshold
of plic_context_t
only appears in plic_t::context_read
and plic_t::context_write
). This small fix in plic_t::context_best_pending
fixes the missing threshold masking.