Skip to content

Commit

Permalink
Properly reset Speed state.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Aug 9, 2024
1 parent f5484bd commit d1c28b6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Source/iop/Iop_Speed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,21 @@ CSpeed::CSpeed(CIntc& intc)

void CSpeed::Reset()
{
m_smapEmac3StaCtrl.f = 0;
m_pendingRx = false;
m_rxDelay = 0;
m_rxIndex = 0;
m_intrStat = 0;
m_intrMask = 0;
m_eepRomReadIndex = 0;
m_txBuffer.clear();
m_rxBuffer.clear();
m_rxFifoPtr = 0;
m_rxFrameCount = 0;
m_smapEmac3AddressHi = 0;
m_smapEmac3AddressLo = 0;
m_smapEmac3StaCtrl.f = 0;
memset(m_smapBdTx, 0, sizeof(m_smapBdTx));
memset(m_smapBdRx, 0, sizeof(m_smapBdRx));
}

void CSpeed::SetEthernetFrameTxHandler(const EthernetFrameTxHandler& ethernetFrameTxHandler)
Expand Down

0 comments on commit d1c28b6

Please sign in to comment.