Skip to content
Commit eeb1261c authored by Vikas Kumar's avatar Vikas Kumar Committed by Vincenzo Frascino
Browse files

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: default avatarDave Martin <Dave.Martin@arm.com>
Signed-off-by: default avatarDave Martin <Dave.Martin@arm.com>
Signed-off-by: default avatarVikas Kumar <vikas.kumar2@arm.com>
parent f94dffaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment