gradius4: avoid stack overflow when adsp21062 device is reset while inside interrupt handler [Peter Ferrie]

This commit is contained in:
Peter Ferrie 2015-03-18 20:34:29 -07:00
parent eb1e924f29
commit 9ccdee61fc

View File

@ -355,9 +355,7 @@ void adsp21062_device::device_start()
m_lcstack[i] = 0;
m_lastack[i] = 0;
}
m_lstkp = 0;
m_pcstk = 0;
m_pcstkp = 0;
m_laddr.addr = m_laddr.code = m_laddr.loop_type = 0;
m_curlcntr = 0;
m_lcntr = 0;
@ -682,6 +680,8 @@ void adsp21062_device::device_reset()
m_idle = 0;
m_stky = 0x5400000;
m_lstkp = 0;
m_pcstkp = 0;
m_interrupt_active = 0;
}