We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 779f478 commit 6b116abCopy full SHA for 6b116ab
clint.c
@@ -7,7 +7,7 @@ void clint_update_interrupts(hart_t *hart, clint_state_t *clint)
7
{
8
uint64_t time_delta =
9
clint->mtimecmp[hart->mhartid] - semu_timer_gettime(&hart->time);
10
- if (time_delta & 0x8000000000000000 || time_delta == 0)
+ if ((int32_t)time_delta <= 0)
11
hart->sip |= RV_INT_STI_BIT;
12
else
13
hart->sip &= ~RV_INT_STI_BIT;
0 commit comments