Remove debugger data reg accesses

The debug trap accesses the data0/data1 registers, so we do not
want the userspace to write values to it.  We remove the calls to
set the data0/data1 register values.

Change-Id: Iaba842a4c445f339f16a39fe1994526ff78a2f3c
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
This commit is contained in:
Philip Cox
2019-08-13 11:03:43 -04:00
والد efe3769835
کامیت 6933540c81
3فایلهای تغییر یافته به همراه8 افزوده شده و 63 حذف شده
-33
مشاهده پرونده
@@ -735,9 +735,6 @@ hsaKmtQueueResume(
- X, Y, Z grid and work-group position of the wave within the
dispatch.
- The value of TrapData registers. hsaKmtEnableDebugTrap() sets
these to 0 and they can be changed by hsaKmtSetDebugTrapData2().
- The scratch backing memory address.
- Enable wave launch trap override. hsaKmtEnableDebugTrap() sets the
@@ -826,36 +823,6 @@ hsaKmtQueryDebugEvent(
bool *IsNew //OUT
);
/**
Set the value to use to initialize the TrapData used when
initializing trap temp registers for NodeId when debug trap is enabled.
An error is returned if debug trap is not currently enabled for
NodeId. Debug trap is enabled by hsaKmtEnableDebugTrap() which
initializes TrapData to 0.
Returns:
- HSAKMT_STATUS_SUCCESS if successful.
- HSAKMT_STATUS_NOT_SUPPORTED if debug trap data is not supported
by NodeId.
- HSAKMT_STATUS_INVALID_HANDLE if NodeId is invalid.
- HSAKMT_STATUS_INVALID_PARAMETER if TrapDataIndex is larger than
trap-data-count - 1.
- HSAKMT_STATUS_ERROR if debug trap is not currently enabled by
hsaKmtEnableDebugTrap() for NodeId.
*/
HSAKMT_STATUS
HSAKMTAPI
hsaKmtSetDebugTrapData2(
HSAuint32 NodeId, //IN
HSAuint32 TrapData0, //IN
HSAuint32 TrapData1 //IN
);
/**
Set the trap override mask. When debug trap is enabled by
hsaKmtEnableDebugTrap() each wave launched has its initial