mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-10-24 10:02:18 +00:00
grandcentral: Apply mask when reading int events.
The event is still pending even if masked. It will cause an interrupt when it is unmasked unless it is cleared. Tested on real Power Mac 8600.
This commit is contained in:
1 parent
b670fab0f3
commit
c8a9fb91c5
1 file changed
+1
-1
@@ -295,7 +295,7 @@ uint32_t GrandCentral::read(uint32_t rgn_start, uint32_t offset, int size)
|
||||
} else { // Interrupt related registers
|
||||
switch (offset) {
|
||||
case MIO_INT_EVENTS1:
|
||||
return BYTESWAP_32(this->int_events);
|
||||
return BYTESWAP_32(this->int_events & this->int_mask);
|
||||
case MIO_INT_MASK1:
|
||||
return BYTESWAP_32(this->int_mask);
|
||||
case MIO_INT_CLEAR1:
|
||||
|
||||
Reference in new issue
Block a user