kselftests/arm64: add BTI J test
BTI-J functionality test checks for non function call like case statement. BTI-J supports 0b11 and 0b01 PSTATE.BTYPE 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 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