142c142
< if (master == NULL) {
---
> if (mode == Enums::I8259Master) {
195,197c195,202
< } else if (master != NULL) {
< DPRINTF(I8259, "Propogating interrupt to master.\n");
< master->signalInterrupt(cascadeBits);
---
> } else {
> if (output) {
> DPRINTF(I8259, "Propogating interrupt.\n");
> output->signalInterrupt();
> } else {
> warn("Received interrupt but didn't have "
> "anyone to tell about it.\n");
> }