Skip to content

Commit c1ac3a7

Browse files
bmyatesCompute-Runtime-Automation
authored andcommitted
feature: Expand exception bitmask checked by dbgUMD
Related-to: NEO-8306 Signed-off-by: Brandon Yates <[email protected]>
1 parent 5efbf1d commit c1ac3a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

level_zero/tools/source/debug/debug_session_imp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ void DebugSessionImp::generateEventsAndResumeStoppedThreads() {
816816
}
817817

818818
bool DebugSessionImp::isForceExceptionOrForceExternalHaltOnlyExceptionReason(uint32_t *cr0) {
819-
const uint32_t cr0ExceptionBitmask = 0xFC010000;
819+
const uint32_t cr0ExceptionBitmask = 0xFC810000;
820820
const uint32_t cr0ForcedExcpetionBitmask = 0x44000000;
821821

822822
return (((cr0[1] & cr0ExceptionBitmask) & (~cr0ForcedExcpetionBitmask)) == 0);

level_zero/tools/test/unit_tests/sources/debug/debug_session_tests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021-2024 Intel Corporation
2+
* Copyright (C) 2021-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -961,6 +961,8 @@ TEST(DebugSessionTest, givenCr0RegisterWhenIsFEOrFEHOnlyExceptionReasonThenTrueR
961961
EXPECT_FALSE(sessionMock->isForceExceptionOrForceExternalHaltOnlyExceptionReasonBase(cr0));
962962
cr0[1] = (1 << 28);
963963
EXPECT_FALSE(sessionMock->isForceExceptionOrForceExternalHaltOnlyExceptionReasonBase(cr0));
964+
cr0[1] = (1 << 23);
965+
EXPECT_FALSE(sessionMock->isForceExceptionOrForceExternalHaltOnlyExceptionReasonBase(cr0));
964966
}
965967

966968
TEST(DebugSessionTest, givenSomeThreadsRunningWhenResumeCalledThenOnlyStoppedThreadsResumed) {

0 commit comments

Comments
 (0)