Skip to content

Commit f874622

Browse files
committed
Modify non-standard interrupt start position
Signed-off-by: Binno <[email protected]>
1 parent 50a4aff commit f874622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

riscv/processor.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ void processor_t::set_mmu_capability(int cap)
244244
reg_t processor_t::select_an_interrupt_with_default_priority(reg_t enabled_interrupts) const
245245
{
246246
// nonstandard interrupts have highest priority
247-
if (enabled_interrupts >> (IRQ_M_EXT + 1))
248-
enabled_interrupts = enabled_interrupts >> (IRQ_M_EXT + 1) << (IRQ_M_EXT + 1);
247+
if (enabled_interrupts >> (IRQ_LCOF + 1))
248+
enabled_interrupts = enabled_interrupts >> (IRQ_LCOF + 1) << (IRQ_LCOF + 1);
249249
// standard interrupt priority is MEI, MSI, MTI, SEI, SSI, STI
250250
else if (enabled_interrupts & MIP_MEIP)
251251
enabled_interrupts = MIP_MEIP;

0 commit comments

Comments
 (0)