2
0

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.
Este cometimento está contido em:
Jonathan Kim
2025-04-08 11:07:11 -04:00
cometido por Kim, Jonathan
ascendente c1b7aa39ed
cometimento 4c3a0698f8
+8
Ver ficheiro
@@ -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