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

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: 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 c8c607eb
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