Text file src/internal/cpu/cpu_loong64.s
1 // Copyright 2024 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 #include "textflag.h" 6 7 // func get_cpucfg(reg uint32) uint32 8 TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0-12 9 MOVW reg+0(FP), R5 10 CPUCFG R5, R4 11 MOVW R4, ret+8(FP) 12 RET 13