Skip to content

Commit

Permalink
Fixed a bug in the handling of the ge register of the smbus
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Aug 21, 2024
1 parent c1cccd8 commit 2829aea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hw/smbus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,14 @@ void smbus::write8(uint32_t addr, const uint8_t data)
break;

case SMBUS_GE_addr:
m_regs[reg_off] |= (data & (GE_CYCTYPE | GE_HCYC_EN));
m_regs[reg_off] = data & (GE_CYCTYPE | GE_HCYC_EN);
if (data & GE_ABORT) {
m_regs[SMBUS_REG_off(SMBUS_GS_addr)] |= GS_ABRT_STS;
m_machine->raise_irq(SMBUS_IRQ_NUM);
break;
}
else if (data & GE_HOST_STC) {
start_cycle();
m_machine->raise_irq(SMBUS_IRQ_NUM);
}
m_machine->raise_irq(SMBUS_IRQ_NUM);
break;

case SMBUS_HA_addr:
Expand Down

0 comments on commit 2829aea

Please sign in to comment.