cpu_loong64.s raw

   1  // Copyright 2025 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
   9  	MOVW	reg+0(FP), R5
  10  	// CPUCFG R5, R4 = 0x00006ca4
  11  	WORD	$0x00006ca4
  12  	MOVW	R4, ret+8(FP)
  13  	RET
  14