From 15129aafc3056028aa2694528ac20373f8cd34e4 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 4 Nov 2025 09:38:28 +0100 Subject: [PATCH] cpu: also use MRS instruction in getmmfr1 Use the MRS instruction with the corresponding system register instead of encoding the instructions using a WORD directive. This was missed in CL 583135. Change-Id: Ifcbbd81baa903f1da442eae2e49c06284db9c37d Reviewed-on: https://go-review.googlesource.com/c/sys/+/717681 Auto-Submit: Tobias Klauser Reviewed-by: Florian Lehner Reviewed-by: Michael Knyszek Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI --- cpu/cpu_arm64.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpu/cpu_arm64.s b/cpu/cpu_arm64.s index 601a5f7e..a4f24b3b 100644 --- a/cpu/cpu_arm64.s +++ b/cpu/cpu_arm64.s @@ -23,8 +23,7 @@ TEXT ·getisar1(SB),NOSPLIT,$0-8 // func getmmfr1() uint64 TEXT ·getmmfr1(SB),NOSPLIT,$0-8 // get Memory Model Feature Register 1 into x0 - // mrs x0, ID_AA64MMFR1_EL1 = d5380720 - WORD $0xd5380720 + MRS ID_AA64MMFR1_EL1, R0 MOVD R0, ret+0(FP) RET