kselftests/arm64: add BTI JC test
BTI-JC functionality test checks for all use case including functional and non function call like case statement. BTI-JC supports 0b10, 0b11 and 0b01 PSTATE.BTYPE with BTYPE=0b10 BLR, BLRAA, BLRAB, BLRAAZ, BLRABZ with BTYPE=0b11 BR, BRAA, BRAB, BRAAZ, BRABZ with any register other than X16 or X17 and with BTYPE=0b01 BR, BRAA, BRAB, BRAAZ, BRABZ and with with X16 or X17 branch instruction. Executing any other type of branch instruction in this case including direct branches sets BTYPE to 0b00. Then processor checks whether the instruction being targeted is a landing. If it is not a landing or wrong type of indirect branch then exception is generated. Co-Developed-by:Dave Martin <Dave.Martin@arm.com> Signed-off-by:
Dave Martin <Dave.Martin@arm.com> Signed-off-by:
Vikas Kumar <vikas.kumar2@arm.com>
Loading
Please register or sign in to comment