mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
ifdefs and linux (posix) version (not tested)
This commit is contained in:
parent
d1fff053c2
commit
50b42f8593
5 changed files with 131 additions and 70 deletions
|
@ -280,6 +280,7 @@ void CPUThread::ExecOnce()
|
|||
SendDbgCommand(DID_PAUSED_THREAD, this);
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
void _se_translator(unsigned int u, EXCEPTION_POINTERS* pExp)
|
||||
{
|
||||
const u64 addr = (u64)Memory.GetBaseAddr() - (u64)pExp->ExceptionRecord->ExceptionAddress;
|
||||
|
@ -296,6 +297,9 @@ void _se_translator(unsigned int u, EXCEPTION_POINTERS* pExp)
|
|||
return;
|
||||
}
|
||||
}
|
||||
#else
|
||||
// TODO: linux version
|
||||
#endif
|
||||
|
||||
void CPUThread::Task()
|
||||
{
|
||||
|
@ -312,7 +316,11 @@ void CPUThread::Task()
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
_set_se_translator(_se_translator);
|
||||
#else
|
||||
// TODO: linux version
|
||||
#endif
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue