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.
이 커밋은 다음에 포함됨:
Jonathan Kim 작성하고 Kim, Jonathan가 2025-04-10 14:48:19 -04:00를 커밋함
1 부모 c1b7aa39ed
커밋 4c3a0698f8
1 파일이 변경됨
+8
+8
파일 보기
@@ -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