Skip to content

Commit

Permalink
- Clear spurious PI interrupts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Jun 12, 2022
1 parent 47da54d commit f93ca0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cube/patches/base/emulator.c
Expand Up @@ -902,6 +902,8 @@ static void pi_read(unsigned index, uint32_t *value)
{
switch (index) {
case 0:
if (!(pi.reg.intsr & pi.reg.intmsk))
PI[0] = 1;
*value = pi.reg.intsr | (PI[0] & ~0b00000000000101);
break;
case 1:
Expand Down

0 comments on commit f93ca0f

Please sign in to comment.