Skip to content

Commit

Permalink
Fix AArch64 BLR
Browse files Browse the repository at this point in the history
Reorder the read and write of registers to allow MP+dmb.sy+blr-addr.
  • Loading branch information
fshaked committed Nov 25, 2020
1 parent 83db0d8 commit c2ae3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_sail_legacy/arch/arm/armV8_embed.lem
Original file line number Diff line number Diff line change
Expand Up @@ -4507,7 +4507,6 @@ let execute_BranchImmediate (branch_type, offset) =
branch_type)

let execute_BranchRegister (n, branch_type) =
rX ((64:ii),n) >>= fun target ->
(if bitU_to_bool (eq (branch_type, BranchType_CALL))
then
rPC () >>= fun w__0 ->
Expand All @@ -4516,6 +4515,7 @@ let execute_BranchRegister (n, branch_type) =
reset_vector_start (set_vector_start_to_length
(add_VIV (reset_vector_start (set_vector_start_to_length w__0)) (4:ii))))
else return ()) >>
rX ((64:ii),n) >>= fun target ->
BranchTo (reset_vector_start (set_vector_start_to_length target),branch_type)

let execute_ExceptionReturn () =
Expand Down

0 comments on commit c2ae3f5

Please sign in to comment.