kfdtest: fix trap on start for gfx 9 and 11
Similar to GFX 12, GFX 9 and 11 need to exit without forwarding
the PC.
[ROCm/ROCR-Runtime commit: 4c3a0698f8]
Šī revīzija ir iekļauta:
revīziju iesūtīja
Kim, Jonathan
vecāks
309a1354ab
revīzija
a595c0bd25
@@ -1134,6 +1134,14 @@ const char *TrapHandlerIsa =
|
||||
s_getreg_b32 ttmp14, hwreg(HW_REG_EXCP_FLAG_PRIV)
|
||||
s_and_b32 ttmp2, ttmp14, 0x300
|
||||
s_cbranch_scc1 RESTORE_AND_EXIT
|
||||
.elseif (.amdgcn.gfx_generation_number == 11)
|
||||
s_getreg_b32 ttmp14, hwreg(HW_REG_TRAPSTS)
|
||||
s_and_b32 ttmp2, ttmp14, 0x30000
|
||||
s_cbranch_scc1 RESTORE_AND_EXIT
|
||||
.else
|
||||
s_getreg_b32 ttmp14, hwreg(HW_REG_TRAPSTS)
|
||||
s_and_b32 ttmp2, ttmp14, 0x1800000
|
||||
s_cbranch_scc1 RESTORE_AND_EXIT
|
||||
.endif
|
||||
/* restore and increment program counter to skip shader trap jump*/
|
||||
s_add_u32 ttmp0, ttmp0, 4
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user