diff options
Diffstat (limited to 'vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s')
-rw-r--r-- | vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s b/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s deleted file mode 100644 index b31d6ae..0000000 --- a/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file. | ||
2 | |||
3 | //+build arm64,!gccgo,!noasm,!appengine | ||
4 | |||
5 | // See https://www.kernel.org/doc/Documentation/arm64/cpu-feature-registers.txt | ||
6 | |||
7 | // func getMidr | ||
8 | TEXT ·getMidr(SB), 7, $0 | ||
9 | WORD $0xd5380000 // mrs x0, midr_el1 /* Main ID Register */ | ||
10 | MOVD R0, midr+0(FP) | ||
11 | RET | ||
12 | |||
13 | // func getProcFeatures | ||
14 | TEXT ·getProcFeatures(SB), 7, $0 | ||
15 | WORD $0xd5380400 // mrs x0, id_aa64pfr0_el1 /* Processor Feature Register 0 */ | ||
16 | MOVD R0, procFeatures+0(FP) | ||
17 | RET | ||
18 | |||
19 | // func getInstAttributes | ||
20 | TEXT ·getInstAttributes(SB), 7, $0 | ||
21 | WORD $0xd5380600 // mrs x0, id_aa64isar0_el1 /* Instruction Set Attribute Register 0 */ | ||
22 | WORD $0xd5380621 // mrs x1, id_aa64isar1_el1 /* Instruction Set Attribute Register 1 */ | ||
23 | MOVD R0, instAttrReg0+0(FP) | ||
24 | MOVD R1, instAttrReg1+8(FP) | ||
25 | RET | ||
26 | |||