mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
amic: basic writing to the VIA2 IFR.
This commit is contained in:
parent
3050986164
commit
3f2b77fd59
@ -251,6 +251,12 @@ void AMIC::write(uint32_t rgn_start, uint32_t offset, uint32_t value, int size)
|
||||
}
|
||||
|
||||
switch(offset) {
|
||||
case AMICReg::VIA2_IFR:
|
||||
// for each "1" in value clear the corresponding IRQ bit
|
||||
// TODO: is bit 7 read only?
|
||||
// TODO: update interrupts?
|
||||
this->via2_ifr &= ~(value & 0x7F);
|
||||
break;
|
||||
case AMICReg::VIA2_Slot_IER:
|
||||
LOG_F(INFO, "AMIC VIA2 Slot Interrupt Enable Register updated, val=%x", value);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user