Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/sysPublic

Commit15129aa

Browse files
tklausergopherbot
authored andcommitted
cpu: also use MRS instruction in getmmfr1
Use the MRS instruction with the corresponding system register insteadof encoding the instructions using a WORD directive. This was missed inCL 583135.Change-Id: Ifcbbd81baa903f1da442eae2e49c06284db9c37dReviewed-on:https://go-review.googlesource.com/c/sys/+/717681Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>Reviewed-by: Michael Knyszek <mknyszek@google.com>Reviewed-by: Michael Pratt <mpratt@google.com>LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parented38ca2 commit15129aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎cpu/cpu_arm64.s‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ TEXT ·getisar1(SB),NOSPLIT,$0-8
2323
// func getmmfr1() uint64
2424
TEXT ·getmmfr1(SB),NOSPLIT,$0-8
2525
// get Memory Model Feature Register1into x0
26-
// mrsx0, ID_AA64MMFR1_EL1 = d5380720
27-
WORD$0xd5380720
26+
MRSID_AA64MMFR1_EL1, R0
2827
MOVDR0,ret+0(FP)
2928
RET
3029

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp