mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Debugger L0 Win: Attention event handling from UMD
Related-To: NEO-7261 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
22fb71a268
commit
3212a71760
@@ -627,6 +627,25 @@ void DebugSessionImp::sendInterrupts() {
|
||||
}
|
||||
}
|
||||
|
||||
bool DebugSessionImp::readSystemRoutineIdent(EuThread *thread, uint64_t memoryHandle, SIP::sr_ident &srIdent) {
|
||||
auto stateSaveAreaHeader = getStateSaveAreaHeader();
|
||||
if (!stateSaveAreaHeader) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto gpuVa = getContextStateSaveAreaGpuVa(memoryHandle);
|
||||
if (gpuVa == 0) {
|
||||
return false;
|
||||
}
|
||||
auto threadSlotOffset = calculateThreadSlotOffset(thread->getThreadId());
|
||||
auto srMagicOffset = threadSlotOffset + getStateSaveAreaHeader()->regHeader.sr_magic_offset;
|
||||
|
||||
if (ZE_RESULT_SUCCESS != readGpuMemory(memoryHandle, reinterpret_cast<char *>(&srIdent), sizeof(srIdent), gpuVa + srMagicOffset)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void DebugSessionImp::markPendingInterruptsOrAddToNewlyStoppedFromRaisedAttention(EuThread::ThreadId threadId, uint64_t memoryHandle) {
|
||||
|
||||
SIP::sr_ident srMagic = {};
|
||||
|
||||
Reference in New Issue
Block a user