mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Translate exception address.
This commit is contained in:
parent
532c38ab6a
commit
a7d0cedddf
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ void CPsxBios::HandleInterrupt()
|
||||||
void CPsxBios::HandleException()
|
void CPsxBios::HandleException()
|
||||||
{
|
{
|
||||||
assert(m_cpu.m_State.nHasException);
|
assert(m_cpu.m_State.nHasException);
|
||||||
uint32 searchAddress = m_cpu.m_State.nCOP0[CCOP_SCU::EPC];
|
uint32 searchAddress = m_cpu.m_pAddrTranslator(&m_cpu, m_cpu.m_State.nCOP0[CCOP_SCU::EPC]);
|
||||||
uint32 callInstruction = m_cpu.m_pMemoryMap->GetWord(searchAddress);
|
uint32 callInstruction = m_cpu.m_pMemoryMap->GetWord(searchAddress);
|
||||||
if(callInstruction != 0x0000000C)
|
if(callInstruction != 0x0000000C)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue