Modify HW dbg thunk,to adapt to new KFD-thunk interface
Signed-off-by: Yair Shachar <yair.shachar@amd.com>
[ROCm/ROCR-Runtime commit: 89188a6d6c]
Este commit está contenido en:
@@ -129,6 +129,9 @@ hsaKmtDbgWavefrontControl(
|
||||
|
||||
unsigned char* run_ptr = (unsigned char*)args + sizeof(*args);
|
||||
|
||||
/* save variable content pointer for kfd */
|
||||
args->content_ptr = (void *)run_ptr;
|
||||
|
||||
/* insert items, and increment pointer accordingly */
|
||||
|
||||
*((HSA_DBG_WAVEOP*)run_ptr) = Operand;
|
||||
@@ -220,10 +223,13 @@ hsaKmtDbgAddressWatch(
|
||||
args->gpu_id = gpu_id;
|
||||
args->buf_size_in_bytes = buff_size;
|
||||
|
||||
|
||||
/* increment pointer to the start of the non fixed part */
|
||||
|
||||
unsigned char* run_ptr = (unsigned char*)args + sizeof(*args);
|
||||
|
||||
/* save variable content pointer for kfd */
|
||||
args->content_ptr = (void *)run_ptr;
|
||||
/* insert items, and increment pointer accordingly */
|
||||
|
||||
*((HSAuint32*)run_ptr) = NumWatchPoints;
|
||||
|
||||
Referencia en una nueva incidencia
Block a user