]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: support MSR DIT
authorRoland Shoemaker <roland@golang.org>
Wed, 10 Jul 2024 22:02:34 +0000 (17:02 -0500)
committerRoland Shoemaker <roland@golang.org>
Wed, 24 Jul 2024 18:45:14 +0000 (18:45 +0000)
commitb5c2b1ec13f324743613bb33cbe6c664974db48e
tree353d597e68c88a4d446652dd6750839b2513844e
parentc0eac35a4cd3ca16d3d1fc153a155b0b18f49633
cmd/internal/obj/arm64: support MSR DIT

Set the right instruction bits in asmout in order
to allow using MSR with DIT and an immediate
value. This allows us to avoid using an
intermediary register when we want to set DIT
(unsetting DIT already worked with the zero
register).

Ref: https://developer.arm.com/documentation/ddi0602/2024-06/Base-Instructions/MSR--immediate---Move-immediate-value-to-special-register-?lang=en
Change-Id: Id049a0b4e0feb534cea992553228f9b5e12ddcea
Reviewed-on: https://go-review.googlesource.com/c/go/+/597595
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/asm7.go